aspose file tools*
The moose likes Performance and the fly likes Out of memory Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Out of memory Problem" Watch "Out of memory Problem" New topic
Author

Out of memory Problem

deepak vaswani
Greenhorn

Joined: Sep 11, 2007
Posts: 3
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

Joined: Mar 07, 2007
Posts: 1282

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

Joined: Sep 11, 2007
Posts: 3
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

Joined: Mar 07, 2007
Posts: 1282

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

Joined: Sep 11, 2007
Posts: 3
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
 
jQuery in Action, 2nd edition
 
subject: Out of memory Problem