Meaningless Drivel is fun!*
The moose likes JBoss/WildFly and the fly likes tomcat out of memory solution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "tomcat out of memory solution " Watch "tomcat out of memory solution " New topic
Author

tomcat out of memory solution

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
hi, i deploy using jboss ...but after sometime ...then the console will give error like "out of memory error" , i have try set SET JAVA_OPTS=-Xmx384m into startup.bat ....it seem helpless on this problem ....anyone know the solution on this ...thank you

also, why this error happen normally ?
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 292

How big is your application? If you have a lot of state held in memory, or do a lot of processing, you may not be specifying enough memory.

In live applications, I typically specify -Xmx1024m

It sounds likely that 384Mb isn't enough for your application. I would try increasing it and that should solve the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat out of memory solution
 
Similar Threads
Out of Memory error / Heap size problem
java.lang.OutOfMemory
How to increase the Heap size if my server..?
out of memory
Dynamically determining the amount of available memory