• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache commons JCI - OutOfMemoryError

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What did you change the perm gen to?
 
Suresh Achary
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can only suggest you try a memory profiler and see what the limit gets to...
 
Evil is afoot. But this tiny ad is just an ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic