|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
Frequent java.lang.OutOfMemoryError: Java heap space errorHello all,
I am running my product build with cruisecontrol using ant 1.7.0. I have set ANT_OPTS=-Xms=1536m -Xmx1536m, but still I am getting below mentioned error, I have searched mail archive, but I see ANT_OPTS settings, which I have already set, I get the following error : [javac] The system is out of resources. [javac] java.lang.OutOfMemoryError: Java heap space Am I doing right to set ANT_OPTS variable to increase the heap size ? I am running my build machine using Windows XP with 2.0 Gigabyte of physical RAM. Does somebody know how to handle this ? It is more frequent now. Thanks in adavnace for thoughts. Regards, Ravi --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: Frequent java.lang.OutOfMemoryError: Java heap space errorhave you tried to fork and specify the memoryInitialSize and memoryMaximumSize?
you should try with another compiler if you were using Sun Javac, try jikes or even better eclipse compiler (org.eclipse.jdt.core.JDTCompilerAdapter) my 2cts... -----Original Message----- From: Ravi Roy [mailto:ravi.aroy@...] Sent: Monday, December 10, 2007 4:37 PM To: user@... Subject: Frequent java.lang.OutOfMemoryError: Java heap space error Hello all, I am running my product build with cruisecontrol using ant 1.7.0. I have set ANT_OPTS=-Xms=1536m -Xmx1536m, but still I am getting below mentioned error, I have searched mail archive, but I see ANT_OPTS settings, which I have already set, I get the following error : [javac] The system is out of resources. [javac] java.lang.OutOfMemoryError: Java heap space Am I doing right to set ANT_OPTS variable to increase the heap size ? I am running my build machine using Windows XP with 2.0 Gigabyte of physical RAM. Does somebody know how to handle this ? It is more frequent now. Thanks in adavnace for thoughts. Regards, Ravi --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Frequent java.lang.OutOfMemoryError: Java heap space errorRavi Roy wrote:
> Hello all, > > I am running my product build with cruisecontrol using ant 1.7.0. I have set > ANT_OPTS=-Xms=1536m -Xmx1536m, but still I am getting below mentioned error, > I have searched mail archive, but I see ANT_OPTS settings, which I have > already set, I get the following error : > > [javac] The system is out of resources. > [javac] java.lang.OutOfMemoryError: Java heap space > > Am I doing right to set ANT_OPTS variable to increase the heap size ? I am > running my build machine using Windows XP with 2.0 Gigabyte of physical RAM. > > Does somebody know how to handle this ? It is more frequent now. 1. run jconsole against the running java processes to identify the memory hogs 2. it may be that its cruise control running ant in process that is consuming the memory, and that different env variables need setting 3. fork junit, javac and other process (separate JVM that gets cleaned up) 4. Are you using Ivy or other third-party ant tasks? I'd be pretty surprised that you are running out at 1.5GB; that will result in a footprint over the 2GB mark -steve PS: (top proceses on my machine right now: vm physical shared 2319m 1.1g 15m S 94 18.9 248:35.14 java 2051m 475m 19m S 30 7.9 71:55.36 java 769m 569m 553m S 22 9.5 40:26.57 vmware-v IDEA at the top, then netbeans, finally XP in a VMware image. I'm playing with Netbeans as IDEA is getting too sluggish. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Frequent java.lang.OutOfMemoryError: Java heap space errorHi Ravi
This is what I configure to enable increased min/max heap (Note the collection of unused PermGen parameters) -Xmx512m -XX:MaxPermSize=512m -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -X X:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled HTH M- ----- Original Message ----- From: "Ravi Roy" <ravi.aroy@...> To: <user@...> Sent: Monday, December 10, 2007 10:37 AM Subject: Frequent java.lang.OutOfMemoryError: Java heap space error Hello all, I am running my product build with cruisecontrol using ant 1.7.0. I have set ANT_OPTS=-Xms=1536m -Xmx1536m, but still I am getting below mentioned error, I have searched mail archive, but I see ANT_OPTS settings, which I have already set, I get the following error : [javac] The system is out of resources. [javac] java.lang.OutOfMemoryError: Java heap space Am I doing right to set ANT_OPTS variable to increase the heap size ? I am running my build machine using Windows XP with 2.0 Gigabyte of physical RAM. Does somebody know how to handle this ? It is more frequent now. Thanks in adavnace for thoughts. Regards, Ravi --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: Frequent java.lang.OutOfMemoryError: Java heap space errorThanks Steve,
I am using Ant-contrib-b03 for some repeated operations and Emma ant task for getting code coverage, no other third party libs. Junit is always forked while I run my junit tests. I would run jconsole and let you know the results. Thanks Ravi. -----Original Message----- From: Steve Loughran [mailto:stevel@...] Sent: Monday, December 10, 2007 9:15 PM To: Ant Users List Subject: Re: Frequent java.lang.OutOfMemoryError: Java heap space error Ravi Roy wrote: > Hello all, > > I am running my product build with cruisecontrol using ant 1.7.0. I > have set ANT_OPTS=-Xms=1536m -Xmx1536m, but still I am getting below > mentioned error, I have searched mail archive, but I see ANT_OPTS > settings, which I have already set, I get the following error : > > [javac] The system is out of resources. > [javac] java.lang.OutOfMemoryError: Java heap space > > Am I doing right to set ANT_OPTS variable to increase the heap size ? > I am running my build machine using Windows XP with 2.0 Gigabyte of > physical RAM. > > Does somebody know how to handle this ? It is more frequent now. 1. run jconsole against the running java processes to identify the memory hogs 2. it may be that its cruise control running ant in process that is consuming the memory, and that different env variables need setting 3. fork junit, javac and other process (separate JVM that gets cleaned up) 4. Are you using Ivy or other third-party ant tasks? I'd be pretty surprised that you are running out at 1.5GB; that will result in a footprint over the 2GB mark -steve PS: (top proceses on my machine right now: vm physical shared 2319m 1.1g 15m S 94 18.9 248:35.14 java 2051m 475m 19m S 30 7.9 71:55.36 java 769m 569m 553m S 22 9.5 40:26.57 vmware-v IDEA at the top, then netbeans, finally XP in a VMware image. I'm playing with Netbeans as IDEA is getting too sluggish. -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Frequent java.lang.OutOfMemoryError: Java heap space errorMartin Gainty wrote:
> Hi Ravi > > This is what I configure to enable increased min/max heap > (Note the collection of unused PermGen parameters) > -Xmx512m -XX:MaxPermSize=512m -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -X > X:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled that permgen thing is a pain; OutOfPermGenSpace is a real annoyance. JRockit does not have this split; you get one heap for everything. I find it eliminates a lot of error messages I would otherwise see. -steve -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
|
|
|
Re: Frequent java.lang.OutOfMemoryError: Java heap space errorRavi Roy wrote:
> Hi Steve, > > Build was started and I run Jconsole and at the time when Heap space problem > occurred following is the jconsole output : > > Regards, > Ravi > > > VM Summary > Monday, December 10, 2007 5:44:00 PM CET > ------------------------------------------ > Connection name: > pid: 860 sun.tools.jconsole.JConsole > Virtual Machine: > Java HotSpot(TM) Client VM version 1.6.0_03-b05 > Vendor: > Sun Microsystems Inc. > Name: > 860@buildserver > Uptime: > 2 minutes > Process CPU time: > 8.515 seconds > JIT compiler: > HotSpot Client Compiler > Total compile time: > 1.239 seconds > Live threads: > 30 > Peak: > 34 > -------------------------------- > Daemon threads: > 18 > Total threads started: > 183 > Current classes loaded: > 3,121 > Total classes loaded: > 3,165 > Total classes unloaded: > 44 > Current heap size: > 5,740 kbytes > Maximum heap size: > 65,088 kbytes > Committed memory: > 9,892 kbytes > Pending finalization: > 0 objects > Garbage collector: > Name = 'Copy', Collections = 162, Total time spent = 0.319 seconds > Garbage collector: > Name = 'MarkSweepCompact', Collections = 6, Total time spent = 0.485 seconds Looks like it is cruise that is out of memory; its heap is still stuck at 64MB. I dont know how you increment its memory count, but assume it is documented somewhere. If it is not an environment variable, edit the .bat file that starts it up -steve -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Frequent java.lang.OutOfMemoryError: Java heap space errorOn 12/10/07, Ravi Roy <ravi.aroy@...> wrote:
> Hello all, > > I am running my product build with cruisecontrol using ant 1.7.0. Our testing infra hit the same problem with ANT 1.6.5. As workaround the infra forks ANT build in a separate process. Thanks, Stepan. I have set > ANT_OPTS=-Xms=1536m -Xmx1536m, but still I am getting below mentioned error, > I have searched mail archive, but I see ANT_OPTS settings, which I have > already set, I get the following error : > > [javac] The system is out of resources. > [javac] java.lang.OutOfMemoryError: Java heap space > > Am I doing right to set ANT_OPTS variable to increase the heap size ? I am > running my build machine using Windows XP with 2.0 Gigabyte of physical RAM. > > Does somebody know how to handle this ? It is more frequent now. > > Thanks in adavnace for thoughts. > > Regards, > Ravi > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Frequent java.lang.OutOfMemoryError: Java heap space errorHi,
If you are getting an exception "Outof memory in eclipse" try following Right click on build.xml---->Run as--->External tool conf--->In environment variable add ANT_OPTS variable with value -Xmx512M -XX:PermSize=1024m. Then in JRE tab add virtual memory argument ....select from variable list ----> select ANT_OPTS-------->Apply run.........It will work. All the best.
|
| Free embeddable forum powered by Nabble | Forum Help |