We have web application reside on WebSphere application server.
Every time of performing the search on JSP page, the JSP page show error “HTTP 500 Internal server error”
While checking log on System.Out.log of WebSphere, I have found the below error.
[7/3/08 15:02:53:282 CEST] 6252cbaa WebGroup E SRVE0026E: [Servlet Error]-[]: java.lang.OutOfMemoryError
Since, we have increase java heap size in webserver.sh (-Xms512M -Xmx1795M) but problem still persist.
Details
Name IBM WebSphere Application Server
Version 5.0.2.6
ID BASE
Build Level cf60422.03
Build Date 06/02/2004
Name IBM WebSphere SDK
Version 1.3.1
ID JDK
Build Level s0245.03
Build Date 11/11/2002
Please suggest required action to resolve this issue.
Regards
Jiten Mistry
When you say 'search on JSP page', I assume this means that your
application has a search function. Does it by chance use any JNI
libraries? Could be you're running out of native heap instead of java
runtime heap.
Ken
Activate verbose garbage collection logs to see if it fails with 0% memory
free or with large allocation failure.
Also check if there is a more detailed error reason in
native_std(err/out).log.
Could you please specifiy the path of Activate verbose garbage collection logs.
further native_stdout.log & native_stderr.log have a ZERO byes files.
Thanks.
--
Free News Reader
http://put.hk
http://put.hk/reader/news.software.ibm.com/ibm.software.websphere.application-server.html
The error occurred when application tried to put database information into the memory area.
A single page of the application shows 200 rows of information with checkbox option for each row.
User has to check these 200 checkbox and then click on ¡§ACTION¡¨ button.
The application will fetch detailed information of 200 records from the Database (Oracle 8i) and during this time, the system is giving ¡§Page cannot display¡¨ error.
The current memory structure of server is as below
Mem: 8172200K av, 8135436K used, 36764K free, 564K shrd, 422132K buff
Swap: 2097096K av, 1826016K used, 271080K free 3399976K cached
--
Free News Reader
http://put.hk
http://put.hk/reader/news.software.ibm.com/ibm.software.websphere.application-server.html
See http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg21114927.
The Troubleshooting Guide can also prove helpful:
http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg27005324.
An easy fix is to reduce the amount of data one can select...
Does a reasonable someone really spend time at reading 200 records of some
sort at the same time ?
but it is client requirement, we have optimized select/insert/update sql queries in this application.
How can we fix this issue. is there any IBM patch for this?
Regards/-
Jiten
--
Free News Reader
http://put.hk
http://put.hk/reader/news.software.ibm.com/ibm.software.websphere.application-server.html
You can better tell when you have the verbose garbage collection log how to
tune the application server JVM.
> is there any IBM patch for this?
At I first sight, there is no reason to suspect IBM for going out of memory.
In the first place, it's the application which asks for memory.
You can pro-actively apply latest patches just to be sure (5.2.0.6 is not
something recent and is not maintained anymore).
I suppose you too saw WebSphere troubles usually come after you install an
application... :-)
Like Ben says, there's likely no IBM patch for this because it's
probably not a bug.
You say you updated 'webserver.sh' with larger heap sizes. This is not
the way to change this setting, it's changed in the admin console.
Ken
IBM will generally not provide a patch for an application problem, which
this probably is.
Yes, we have set maximum java heap size in wasserver.sh as below,
Even we tried to set java heap size more than 1795M, but WebSphere failed initialized.
$JAVA_HOME/bin/java $WAS_TRACE $DEBUG $CONSOLE_ENCODING $CLIENTSAS -Xms512M -Xmx1795M -classpath $WAS_CLASSPATH -Djava.library.path=$LD_LIBRARY_PATH -Dws.ext.dirs=$WAS_EXT_DIRS $USER_INSTALL_PROP -Dwas.install.root=$WAS_HOME com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.management.tools.WsServerLauncher $CONFIG_ROOT $WAS_CELL $WAS_NODE mantasdedw -logfile startServer.log
Could you please let me know how can I set verbose garbage collection parameter in wasserver.sh
Reg/-
Jiten
--
Free News Reader
http://put.hk
http://put.hk/reader/news.software.ibm.com/ibm.software.websphere.application-server.html
You'll need to figure out what the parameters should be for the JVM that
is running WebSphere.
Ken
Setting would be "-verbosegc".
See IBM JVM Diagnostic Guide at
http://download.boulder.ibm.com/ibmdl/pub/software/dw/jdk/diagnosis/diag131rev3.pdf
for details.
BTW, why not use the built-in facilities and insist on using your own
scripts ?