|
|
Re: java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception [message #735155 is a reply to message #735071] |
Tue, 11 October 2011 06:24 |
|
Thank you Jason for your assistance. My problem is solved. I increased the memory by making changes in catalina.sh file
I followed these steps
1. in tomcat/bin/catalina.sh
2. added following in the beginning
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
as follows
#
# LOGGING_MANAGER (Optional) Override Tomcat's logging manager
# Example (all one line)
# LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
#
# $Id: catalina.sh 1146069 2011-07-13 14:47:32Z markt $
# -----------------------------------------------------------------------------
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
# OS specific support. $var _must_ be set to either true or false.
cygwin=false
darwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
Darwin*) darwin=true;;
OS400*) os400=true;;
esac
Restarted tomcat, and done.
Thanks,
Anurag
[Updated on: Tue, 11 October 2011 06:25] Report message to a moderator
|
|
|
|
Re: java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception [message #748269 is a reply to message #742809] |
Mon, 24 October 2011 15:45 |
|
Can you open a bugzilla entry for this?
Jason
On 10/20/2011 5:25 PM, Ritika wrote:
> Thanks for the tip to add a line in catalina.sh. I was also getting
> similar kind of exception in my Birt Report which is using crosstabs and
> has around 126100 rows expected. But due to large amount of rows,
> initially I was getting this exception. On adding the line mentioned in
> catalina.sh, I cannot see that problem anymore but then sometimes a
> popup box appears that the script becomes unresponsive and most of the
> times, I was able to upload the page but the load is incomplete. Not all
> the records appear and it kind of starts showing tags like "le_15"
> style=" text-align:center;">C at the end of the page..
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02627 seconds