• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

loading java libraries

 
Java Chela
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application that runs multiple processes. I was trying minimize memory usage. It seems that Each process loads its own set of common library like java.util.*, servlet.jar, xml*.jar etc. SO looks to me that these libraries are getting loaded multiple times increasing the memory usage.

I remember in C/C++, you have option of dynamic linking, where the library is shared between multiple processes.

Is my interpretation correct? ANy suggestions, guidelines?

Thanks,
-Sanjay
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are correct. Actually this problem is tackled by Sun in the Tiger release: http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic