Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

out of memory error

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now I've been running Tomcat for some time now (5.5.12) and I've not seen this before. JForum was recently added running in a separate context. This is on a pretty beefy dual processor Athlon with 2 gigs of ram and jdk1.5.0_05.

Today I was using the Admin Control Panel. Adding and deleting categories/forums. After a few deletes/inserts I saw this:

Exception in thread "TP-Processor16" Exception in thread "TP-Processor15" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space

Anyone else seen this?
[originally posted on jforum.net by conquest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which JForum version? It was running for how long until it broke? you think it *may be* JForum leak, or are you *sure* it is?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I just noticed that after I added JForum (1.5 from cvs) this started. I'm not sure where the problem lies.

But after reading this article it's possible it may be JVM settings:

http://www.theserverside.com/news/thread.tss?thread_id=36743

[originally posted on jforum.net by conquest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you're right ... should have done this.

I've add it to my startup script.

[originally posted on jforum.net by conquest]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Indeed, I will bet that you discover the need to increase your JVM's memory settings. These are included in the command line options passed to the JVM that runs tomcat. They are established in your tomcat's startup script.

The default setting is something like 64MB, which is adequate only for the simplest webapps. If you are running JForum, or any serious webapp, I recommend increasing your memory to an initial 128MB, with a maximum of 512MB.

My Linux rc script includes this line:

[originally posted on jforum.net by time]
 
reply
    Bookmark Topic Watch Topic
  • New Topic