File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Mutliple common entries loaded in Classptah Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Mutliple common entries loaded in Classptah" Watch "Mutliple common entries loaded in Classptah" New topic
Author

Mutliple common entries loaded in Classptah

Niraj Gadgilwar
Greenhorn

Joined: Jun 23, 2010
Posts: 11
Hi,

I am facing one issue related to Weblogic Classpath.
I have multiple jars in my ear and those jars have their own namifest.mf file containing entry for Classpath.

When I deploy my EAR into WebLogic and start the server (with CACHE_CLASSPATH=true in startWeblogic.cmd) and browse through different web pages of my application.
After some time, I find multiple duplicate classpath entries get created which consume lot of my server memory instead of using existing entry available into classpath.

I found this using MAT tool(Memory Analyzer Tool).

Kindly let me know if it is default behavior or I am missing something.

attaching MAT screenshot.

Class Name | Shallow Heap | Retained Heap
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| |
java.lang.String @ 0x1d4b2a98 C:\Documents and Settings\guravgan\.m2\repository\com\tietoenator\lis\wls103\lis-batch\15.9-SNAPSHOT\ehcache-1.2.3.jar;C:\Documents and Settings\guravgan\.m2\repository\com\tietoenator\lis\wls103\lis-batch\15.9-SNAPSHOT\commons-logging-1.0.3.jar;C:\Documen...| 24 | 33,592
'- classpathStr weblogic.utils.classloaders.ClasspathClassFinder @ 0x1d4b2900 | 32 | 74,008
'- manifestFinder weblogic.utils.classloaders.JarClassFinder @ 0x1d609600 | 24 | 74,960
'- [130] java.lang.Object[196] @ 0x1d605388 | 800 | 2,865,760
'- array weblogic.utils.collections.CopyOnWriteArrayList @ 0x1d605328 | 16 | 2,865,776
'- finders weblogic.utils.classloaders.ClasspathClassFinder2 @ 0x1d605218 | 16 | 2,865,792
'- [0] java.lang.Object[18] @ 0x1bb1e8a8 | 88 | 2,921,856
'- array weblogic.utils.collections.CopyOnWriteArrayList @ 0x1d605208 | 16 | 2,921,872
'- finders weblogic.utils.classloaders.MultiClassFinder @ 0x1d6051f8 | 16 | 2,921,888
'- webappFinder weblogic.application.utils.CompositeWebAppFinder @ 0x1d6051e8 | 16 | 16
|- [0] java.lang.Object[1] @ 0x1d5f5588 | 16 | 16
|- [1] java.lang.Object[2] @ 0x1c3e8f50 | 24 | 336
|- classfinder weblogic.servlet.internal.War @ 0x1c3de840 | 64 | 1,347,824
'- Total: 3 entries | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


[Thumbnail for Untitled.jpg]

sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 813



After some time, I find multiple duplicate classpath entries get created which consume lot of my server memory instead of using existing entry available into classpath.



How much lot of memory?


Regards, Sud.
SCJP 5 ScjpFAQ JLS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mutliple common entries loaded in Classptah
 
Similar Threads
dependency isn't published
Eclipse Europa DevLoader Problem
Trouble with running Maven Tomcat plugin through Eclipse
Maven Project Running Problem
Maven not searching local repository for a JAR