• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Out of memory Problem

 
deepak vaswani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
I know so many people already asked this question. I have already gone to most of topics related to this. And I tried those things.

I am getting out of memory exception.

This is how I am running my batch through crontabs on AIX

java -Xms1024m -Xmx1536m com.ibm.nzna.projects.navgen.Navgen

Please help me to resolve this issue.

Thanks n Regards

Deepak
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Deepak and welcome to the JavaRanch!

Could it possibly be that it's not the HEAP memory which isn't sufficiently big? Or perhaps the PermGen space? This could be increased by adding "-XX:MaxPermSize=512m" for example ;-)

Marco
 
deepak vaswani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marco.

I have tried this.
export OBJECT_MODE=64
export LDR_CNTRL=MAXDATA=0
java -Xms1024m -Xmx1536m MyClass

It worked and i dint get out of memory exception.
But now I am facing lseek error. Exact error is below

gdbm fatal: lseek error

I tried lot of things. But could not able to get rid of this error.
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Deepak,

I'm sorry, but I don't even know what kind of program you are running in these batch jobs. Looks like something from IBM?!? Anyway gdbm is typically a database system on UNIX/Linux systems. I know there is some kind of Java API to access gdbm databases but from the error message I would suspect that this problem is not directly located in Java code. But hard to tell without more information on these batch jobs you're running.

Marco
 
deepak vaswani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marco,

Yes you got it right. I am running this batch on IBM AIX.
Batch makes one file (named search) which provides search as well as navigation. So there are lot of key value pair in tht file.
when this file reach at 2.14 GB then only I got this error (gdbm fatal lseek error). Expected File size is 2.3 GB Max
Progam is wriitten in C as well as Java.


Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic