Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache commons JCI - OutOfMemoryError

 
Suresh Achary
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using Apache commons JCI for runtime updation of classpath.
During runtime, I will have more than 2000 java classes to be loaded into the classpath.
I am using ReloadingListener also.
But what happens is it JCI is maintaining a Hashmap with key as class name and value as the contents of class.
So during runtime, even after increasing memory, I am getting " java.lang.OutOfMemoryError: PermGen space " nothing else in the log.
Can someone help me in this? I'm struggling for the past few days.

Thanks,
Suresh Achary
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PermGen space is something you can alter when you invoke Java, try googling "Altering PermGen space java" and see what you get, let me know if you still have trouble!
 
Suresh Achary
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still the same issue

Martijn Verburg wrote:PermGen space is something you can alter when you invoke Java, try googling "Altering PermGen space java" and see what you get, let me know if you still have trouble!
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you change the perm gen to?
 
Suresh Achary
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-XX:MaxPermSize=512m
I've thousands of class files

Martijn Verburg wrote:What did you change the perm gen to?
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can only suggest you try a memory profiler and see what the limit gets to...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic