Forum LAMS for Tech-Heads - General Forum: java.lang.OutOfMemoryError: PermGen space


 
You may request notification for java.lang.OutOfMemoryError: PermGen space .
Search: 

1: java.lang.OutOfMemoryError: PermGen space
08/03/09 06:08 PM
[ Reply | Forward ]
Hi,

When I type ant deploy-tools,the problem is coming as following:

2009-08-03 20:57:17,203 ERROR [MainDeployer] could not create deployment: file:/E:/lamssource/jboss-4.0.2/server/default/deploy/lams.ear/lams-tool-latask10.war
java.lang.OutOfMemoryError: PermGen space
2009-08-03 20:57:17,203 ERROR [MainDeployer] could not create deployment: file:/E:/lamssource/jboss-4.0.2/server/default/deploy/lams.ear/

I complete all commands without problems before,but this time the problem happened.why?what can I do?

Please give me help in time.Thanks.

Posted by shuai yuan

2: Re: java.lang.OutOfMemoryError: PermGen space
In response to 1 08/03/09 06:31 PM
[ Reply | Forward ]
Are you running ant from inside eclipse? If so you may have to increase eclipse's memory settings - a quick google yielded these instructions, http://blog.xam.dk/archives/68-Eclipse-and-memory-settings.html

The parameter you need to add is -XX:MaxPermSize=128m.

Posted by Jun-Dir Liew

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum