File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Apache commons JCI - OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Apache commons JCI - OutOfMemoryError" Watch "Apache commons JCI - OutOfMemoryError" New topic
Author

Apache commons JCI - OutOfMemoryError

Suresh Achary
Greenhorn

Joined: Oct 10, 2009
Posts: 9
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Suresh Achary
Greenhorn

Joined: Oct 10, 2009
Posts: 9
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

What did you change the perm gen to?
Suresh Achary
Greenhorn

Joined: Oct 10, 2009
Posts: 9
-XX:MaxPermSize=512m
I've thousands of class files

Martijn Verburg wrote:What did you change the perm gen to?
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I can only suggest you try a memory profiler and see what the limit gets to...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache commons JCI - OutOfMemoryError