Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

issue while server startup

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
we are trying to start the server with following setting

USER_MEM_ARGS="-Xmx2048m -Xms1024m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:+HeapDumpOnCtrlBreak -XX:+HeapDumpOnOutOfMemoryError -Dweblogic.threadpool.MinPoolSize=25 -Xss256k \
-XX:SurvivorRatio=8 -Dweblogic.threadpool.MaxPoolSize=25 -XX:+AggressiveHeap -XX:+UseParallelGC \
-XX:ParallelGCThreads=4 -Dsun.rmi.dgcserver.gcInterval=3600000 -Dsun.rmi.dgc.client.gcInterval=3600000 \
-Dweblogic.ProductionModeEnabled=true"

and getting following exception

weblogic.management.DeploymentException:
at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:86)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:193)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:137)
Truncated. see log file for complete stacktrace
java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.zip.ZipFile.<init>(ZipFile.java:234)
at weblogic.utils.classloaders.ZipClassFinder.<init>(ZipClassFinder.java:23)
at weblogic.utils.classloaders.JarClassFinder.<init>(JarClassFinder.java:35)
Truncated. see log file for complete stacktrace

when we are changing the settings to

USER_MEM_ARGS="-Xmx1024m -Xms1024m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:+HeapDumpOnCtrlBreak -XX:+HeapDumpOnOutOfMemoryError -Dweblogic.threadpool.MinPoolSize=25 -Xss256k \
-XX:SurvivorRatio=8 -Dweblogic.threadpool.MaxPoolSize=25 -XX:+AggressiveHeap -XX:+UseParallelGC \
-XX:ParallelGCThreads=4 -Dsun.rmi.dgcserver.gcInterval=3600000 -Dsun.rmi.dgc.client.gcInterval=3600000 \
-Dweblogic.ProductionModeEnabled=true"

no error is coming .

we have a big jar of size ~133mb.

please let me know what is the issue when i am trying to modify the -Xmx to 2048m
the free memory on our machine is more then 6 GB.
we are trying to run the application in unix environment.

regards
Amitosh
 
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

Amitosh Mishra wrote:


USER_MEM_ARGS="-Xmx2048m -Xms1024m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:+HeapDumpOnCtrlBreak -XX:+HeapDumpOnOutOfMemoryError -Dweblogic.threadpool.MinPoolSize=25 -Xss256k \
-XX:SurvivorRatio=8 -Dweblogic.threadpool.MaxPoolSize=25 -XX:+AggressiveHeap -XX:+UseParallelGC \
-XX:ParallelGCThreads=4 -Dsun.rmi.dgcserver.gcInterval=3600000 -Dsun.rmi.dgc.client.gcInterval=3600000 \
-Dweblogic.ProductionModeEnabled=true"




Amitosh,

looking into the env. details that you set up, I would like to point you out that,

1. it is recommended that xms and xmx are to be set to the same value.
2. I would like to know what is the RAM size. It is recommended that the max perm size is set to 1/4 of the total RAM.
3. Also, why are you using parallel GC ?

Try with the recommended settings and let us know the results.

Looking into the stack track, nothing much can be commented upon.

As I can see, you generate heap dump on out of memory. A look into the heap dump might through more light on the issue.

Please post the same if more assistance is required.
 
Amitosh Mishra
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply sudipto

please find below the information

1
MemTotal: 18712692 kB
MemFree: 10652728 kB
Buffers: 381792 kB
Cached: 3848928 kB
SwapCached: 0 kB

2.
we tried to set both as same also still the result was same.
3. i cant answer the third question exactly we have multiple cpu that could be one reason.

can you suggest me some good tool for taking heap dump.
we are running on jdk version 1.5.11

regards
Amitosh
 
sudipto shekhar
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
to generate heap dumps, you need a tool?

the that is generated during outofmemeory is more than enough.

can you please post the same.

also what platform are you running on?
 
sudipto shekhar
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
also please let us know if you cross post :

https://forums.oracle.com/forums/thread.jspa?threadID=2389662

thanks
 
Amitosh Mishra
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes..
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic