• 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

Mutliple common entries loaded in Classptah

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic