And as a follow-up, I tried reverting to the previous JAVA_OPTS, but am
still getting the error when starting the handle server:
Exception in thread "main" java.lang.NoClassDefFoundError: Xmx512m
Caused by: java.lang.ClassNotFoundException: Xmx512m
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: Xmx512m.  Program will exit.
Exception in thread "main" java.lang.NoClassDefFoundError: Xmx512m
Caused by: java.lang.ClassNotFoundException: Xmx512m
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: Xmx512m.  Program will exit.

Thanks,


Karen S.

On 9/24/12 9:06 AM, "Savage, Karen R." <[email protected]> wrote:

>OK, I've reset JAVA_OPTS to 1024, but I can't start the handle server. I'm
>getting this:
>Exception in thread "main" java.lang.NoClassDefFoundError: Xmx1024m
>Caused by: java.lang.ClassNotFoundException: Xmx1024m
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>Could not find the main class: Xmx1024m.  Program will exit.
>Exception in thread "main" java.lang.NoClassDefFoundError: Xmx1024m
>Caused by: java.lang.ClassNotFoundException: Xmx1024m
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>Could not find the main class: Xmx1024m.  Program will exit.
>
>Is there something else I need to change too?
>
>Thanks,
>
>-- 
>Karen Savage
>Baylor University Libraries
>Electronic Library
>Library Systems
>[email protected]
>(254) 710-3275
>
>
>
>
>
>
>On 9/21/12 2:28 PM, "Tim Donohue" <[email protected]> wrote:
>
>>Hi Karen,
>>
>>The "Java heap space" error would be why things are slowing down /
>>locking up.  It is telling you that the 512MB of memory you set in
>>$JAVA_OPTS is unfortunately not enough for Tomcat (and thus Tomcat
>>essentially crashes).
>>
>>Although we do recommend *at least* 512MB of memory for DSpace, some
>>sites may require more memory if they are active (decent amount of
>>visits or downloads).
>>
>>Here's more info in the online docs about dealing with Java Heap space
>>errors:
>>https://wiki.duraspace.org/display/DSDOC18/Performance+Tuning+DSpace#Perf
>>o
>>rmanceTuningDSpace-GiveTomcatMoreJavaHeapMemory
>>
>>If you have more memory available on that server, you may want to allow
>>Tomcat to use more like 1GB of memory, e.g.:
>>
>>JAVA_OPTS=-Xmx1024m -Xms1024m -Dfile.encoding=UTF-8
>>
>>- Tim
>>
>>On 9/21/2012 1:17 PM, Savage, Karen R. wrote:
>>> I think I've sorted the problem with tomcat not finding the webapps
>>>when
>>> restarting it. It seems some of the files in the tomcat directory now
>>> belonged to root instead of dspace, so it was a permissions problem.
>>>
>>> As for the other problem: In the cocoon log it just says "Failed to
>>> process pipeline" caused by "Page cannot be found". The dspace log is
>>> showing "ClientAbortException:  java.net.SocketException: Broken pipe".
>>> The catalina log is showing some java out of memory errors "SEVERE: An
>>> exception or error occurred in the container during the request
>>>processing
>>> java.lang.OutOfMemoryError: Java heap space"
>>>
>>> I've double-checked, and I do have my $JAVA_OPTS set to "-Xmx512M
>>>-Xms64M
>>> -Dfile.encoding=UTF-8" as the installation instructions say.
>>>
>>> The three logs are attached.
>>>
>>> Thanks,
>>>
>>> Karen S.
>>>
>>> On 9/21/12 12:41 PM, "Tim Donohue" <[email protected]> wrote:
>>>
>>>> Hi Karen,
>>>>
>>>> Is there anything reported in the dspace or tomcat logs when your site
>>>> starts to have issues?
>>>>
>>>> Here's a guide for locating error messages in the dspace/tomcat logs:
>>>> https://wiki.duraspace.org/display/DSPACE/Troubleshoot+an+error
>>>>
>>>> If you can forward to this mailing list any errors appearing in the
>>>> logs, we may be able to narrow down what the issue could be.  But,
>>>> unfortunately without more information, it may be rather difficult for
>>>> us to guess what is going on.
>>>>
>>>> Thanks,
>>>>
>>>> - Tim
>>>>
>>>>
>>>>
>>>> On 9/21/2012 12:35 PM, Savage, Karen R. wrote:
>>>>> About a month ago we upgraded our instance of dspace from 1.7 to 1.8.
>>>>> Since then, the site doesn't seem to stay online for more than a week
>>>>>at
>>>>> a time without having to restart tomcat; and when tomcat is
>>>>>restarted,
>>>>> it can't find the webapp and throws up a 404 error. The server has to
>>>>>be
>>>>> rebooted in order to get everything working again. Any ideas on what
>>>>>may
>>>>> be going wrong?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Linux RedHat 5.3
>>>>> Tomcat 6.0.20
>>>>> Java jdk1.6.0_18
>>>>>
>>>>> --
>>>>> Karen Savage
>>>>> Baylor University Libraries
>>>>> Electronic Library
>>>>> Library Systems
>>>>> [email protected]
>>>>> (254) 710-3275
>>>>>
>>>>>
>>>>> 
>>>>>----------------------------------------------------------------------
>>>>>-
>>>>>--
>>>>> -----
>>>>> Got visibility?
>>>>> Most devs has no idea what their production app looks like.
>>>>> Find out how fast your code is with AppDynamics Lite.
>>>>> http://ad.doubleclick.net/clk;262219671;13503038;y?
>>>>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>>>>> _______________________________________________
>>>>> DSpace-tech mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>>>
>>>
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to