Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WebSphere JVM Heap Size

31 views
Skip to first unread message

AlexTheWolff

unread,
Oct 2, 2008, 2:04:29 PM10/2/08
to
Hi..I need some insight on what might be causing this issue:

I recently changed (based on recommendation from vendor) the initial
and maximum heap size values.

I am talking about the values in Application Servers->YourServer-
>Process Definition->Java Virtual Machine

Initally they were set at 256, and 512 respectivaly. I changed them
to 1024,1024..I then restarted WebSphere and everything seemed to be
fine. Except now certain servlets are no longer working and we would
receive a IE error 500. I looked around in the logs and found nothing
unusual. I changed it back to the original settings and everything
started working again!

I ended up setting it at 512, 512 and that works fine.

Our unix box has 8GB of memory and 'top' displays roughly 160M free on
most occassions.

To me it would seem that our Unix server does not have enuff memory to
support a 1024,1024 setting for these values...but I guess I am
looking for some hard evidence in the log files that could prove that?


Thanks.

AlexTheWolff

unread,
Oct 2, 2008, 2:17:02 PM10/2/08
to
Actually..I take that back I do see an error in the SystemOut.log when
I re-start the Application Server. I guess my question is trying to
decipher the question of what this error message means?


[9/30/08 10:19:26:980 EDT] 0000001d ServletWrappe E SRVE0100E: Did
not realize init() exception thrown by servlet Cgilawson:
java.lang.ExceptionInInitializerError
at com.lawson.servlet.Cgilawson.init(Cgilawson.java:58)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:
318)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:
1819)
at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:
141)
at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:
857)
at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:
584)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:
456)
at
com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:
123)
at
com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:
146)
at
com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:940)
at
com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:
893)
at
com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:
167)
at
com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:
391)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:
1261)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:
1076)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:
547)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:
754)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:
918)
at com.ibm.ws.runtime.component.ApplicationMgrImpl
$AppInitializer.run(ApplicationMgrImpl.java:2070)
at com.ibm.ws.runtime.component.ComponentImpl
$_AsynchInitializer.run(ComponentImpl.java:304)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1475)
Caused by: com.lawson.ios.agent.AgentRuntimeException: 2008-09-30
10:19:26 : INCIDENT_ID#1222784366960-0000 Failed required
configuration. printenv.exe must be in /lawson/test/gen/cgi-bin
at com.lawson.util.eli.CgiRunner.getEnvVariables(CgiRunner.java:
448)
at com.lawson.util.eli.CgiRunner.<init>(CgiRunner.java:97)
at com.lawson.util.eli.CgiRunner.<clinit>(CgiRunner.java:76)
... 21 more
Caused by: com.lawson.util.eli.CgiException: The requested cgi /lawson/
test/gen/cgi-bin/printenv.exe failed during execution.
at com.lawson.util.eli.CgiRunner.runProgram(CgiRunner.java:199)
at com.lawson.util.eli.CgiRunner.getEnvVariables(CgiRunner.java:
438)
... 23 more
Caused by: java.io.IOException: Not enough space
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:428)
at com.lawson.util.eli.CgiRunner.runProgram(CgiRunner.java:141)
... 24 more

[9/30/08 10:19:27:031 EDT] 0000001d WebExtensionP E Error occured
while preparing theservlet for initialization. Check the error logs
for details.
[9/30/08 10:19:27:035 EDT] 0000001d WebExtensionP E SRVE0026E:
[Servlet Error]-[javax.servlet.ServletException: SRVE0207E: Uncaught
initialization exception thrown by servlet
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:
372)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:
1819)
at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:
141)
at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:
857)
at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:
584)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:
456)
at
com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:
123)
at
com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:
146)
at
com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:940)
at
com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:
893)
at
com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:
167)
at
com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:
391)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:
1261)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:
1076)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:
547)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:
754)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:
918)
at com.ibm.ws.runtime.component.ApplicationMgrImpl
$AppInitializer.run(ApplicationMgrImpl.java:2070)
at com.ibm.ws.runtime.component.ComponentImpl
$_AsynchInitializer.run(ComponentImpl.java:304)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1475)
---- Begin backtrace for Nested Throwables
java.lang.ExceptionInInitializerError
at com.lawson.servlet.Cgilawson.init(Cgilawson.java:58)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:
318)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:
1819)
at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:
141)
at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:
857)
at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:
584)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:
456)
at
com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:
123)
at
com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:
146)
at
com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:940)
at
com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:
893)
at
com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:
167)
at
com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:
391)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:
1261)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:
1076)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:
547)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:
754)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:
918)
at com.ibm.ws.runtime.component.ApplicationMgrImpl
$AppInitializer.run(ApplicationMgrImpl.java:2070)
at com.ibm.ws.runtime.component.ComponentImpl
$_AsynchInitializer.run(ComponentImpl.java:304)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1475)
Caused by: com.lawson.ios.agent.AgentRuntimeException: 2008-09-30
10:19:27 : INCIDENT_ID#1222784366960-0000 Failed required
configuration. printenv.exe must be in /lawson/test/gen/cgi-bin
at com.lawson.util.eli.CgiRunner.getEnvVariables(CgiRunner.java:
448)
at com.lawson.util.eli.CgiRunner.<init>(CgiRunner.java:97)
at com.lawson.util.eli.CgiRunner.<clinit>(CgiRunner.java:76)
... 21 more
Caused by: com.lawson.util.eli.CgiException: The requested cgi /lawson/
test/gen/cgi-bin/printenv.exe failed during execution.
at com.lawson.util.eli.CgiRunner.runProgram(CgiRunner.java:199)
at com.lawson.util.eli.CgiRunner.getEnvVariables(CgiRunner.java:
438)
... 23 more
Caused by: java.io.IOException: Not enough space
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:428)
at com.lawson.util.eli.CgiRunner.runProgram(CgiRunner.java:141)
... 24 more
]: {1}
[9/30/08 10:19:27:076 EDT] 0000001d ServletWrappe A SRVE0242I: [IOS]
[/] [FileView]: Initialization successful.
[9/30/08 10:19:27:096 EDT] 0000001d ServletWrappe A SRVE0242I: [IOS]
[/] [IOSCacheRefresh]: Initialization successful.
[9/30/08 10:19:27:104 EDT] 0000001d VirtualHost I SRVE0250I: Web
Module <null> has been bound to default_host[*:9080,*:80,*:9443].
[9/30/08 10:19:27:110 EDT] 0000001f WebGroup A SRVE0169I:
Loading Web Module: perfservlet.
[9/30/08 10:19:27:115 EDT] 0000001d ApplicationMg A WSVR0221I:
Application started: IOS

Ben_

unread,
Oct 3, 2008, 4:58:13 AM10/3/08
to
> Caused by: java.io.IOException: Not enough space
> at java.lang.UNIXProcess.forkAndExec(Native Method)
> at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Runtime.java:566)
> at java.lang.Runtime.exec(Runtime.java:428)
> at com.lawson.util.eli.CgiRunner.runProgram(CgiRunner.java:141)

This should give you starting point.

Application is trying to fork a process, but it won't succeed due to a lack
of space.

Looks from your 'top' output that it's worth checking if there is enough
swap space.

0 new messages