This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mutliple common entries loaded in Classptah

 
Niraj Gadgilwar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Untitled.jpg
[Thumbnail for Untitled.jpg]
 
sudipto shekhar
Ranch Hand
Posts: 823
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic