This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat out of memory solution

 
Nakata kokuyo
Ranch Hand
Posts: 467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic