Forum LAMS for Tech-Heads - General Forum: Java error and 64 bit server


 
You may request notification for Java error and 64 bit server.
Search: 

1: Java error and 64 bit server
02/04/10 12:28 AM
[ Reply | Forward ]
Hi,
Our site manager, told me today he discovered why LAMS sometimes causes problems for us.

We run a 64 bit server, but LAMS seems to be optimised for a 32 bit server. Our server does a good job of compensating but we get memory leak problems forcing us to perdiodically have to restart LAMS. Could you please take a look at the following error message and let me know if you already came across this and have a solution.

Thanks

ERROR MESSAGE

Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.


WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
The file is located on the path at the following location but
could not be loaded:
C:\lams\jboss-4.0.2\bin\..\lib\wrapper.dll
Please verify that the file is readable by the current user
and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version
of the Wrapper with a 64-bit version of Java, or vica versa.
This is a 64-bit JVM.
Reported cause:
C:\lams\jboss-4.0.2\lib\wrapper.dll: Can't load IA 32-bit .dll on a
AMD 64-bit platform
System signals will not be handled correctly.

Posted by Pavle Jeric

2: Re: Java error and 64 bit server
In response to 1 02/04/10 12:54 AM
[ Reply | Forward ]
That's the java service wrapper, a little piece of software used to make lams into a windows service - it comes with a pre-compiled dll as you see. The lams installer includes the 32 bit version, but not the 64 bit version at the moment.

It shouldn't be too difficult to transplant the wrapper with a 64 bit version - http://wrapper.tanukisoftware.org/doc/english/download.jsp - alternatively you can wait till this is fixed in the lams updater.

Posted by Jun-Dir Liew

3: Re: Re: Java error and 64 bit server
In response to 2 04/05/11 01:08 PM
[ Reply | Forward ]
I´m testing tanuki´s wrapper ver 3.5.4 in a windows 2008 R2 64 bits server. Tests are running good, but how can i configure LAMS to run with this wrapper version?

Posted by Juan Antonio López Martínez

4: Re: Re: Re: Java error and 64 bit server
In response to 3 04/05/11 01:19 PM
[ Reply | Forward ]
Hi Juan Antonio,

Actually I was about to post here yesterday as I was working with a W 2008 R2 server and found an alternative that works great:

http://yajsw.sourceforge.net/

See the Quick start to get started. It's very good.

Thanks,

Ernie

Posted by Ernie Ghiglione

5: Re: Re: Re: Re: Java error and 64 bit server
In response to 4 04/05/11 04:44 PM
[ Reply | Forward ]
Ok, thanks a lot and let me try it...

Posted by Juan Antonio López Martínez

6: 64 bit server LAMS error - Trying with YAJSW
In response to 4 04/12/11 09:41 PM
[ Reply | Forward ]
Hi Ernie,
I´m trying to set up LAMS with yajsw-beta-10.6 in my 64 bits Windows 2008 R2 server, It´s running but the problem in authoring areas is still present (LAMS hangs there). There are any aditional configuration for 64 bit servers? Do you have any idea about?, I attach the configuration file
Thanks for your help.

Posted by Juan Antonio López Martínez

Attachments:
7: Re: 64 bit server LAMS error - Trying with YAJSW
In response to 6 04/12/11 10:12 PM
[ Reply | Forward ]
Hi Juan Antonio,

What's the problem with author? Does it show you a blank page only?

If so, check out the ServerURL parameter you have in the sysadmin menu--> Edit Configuration Settings.

It must be the same as the URL you are using in you browser.

For instance if you are using http://www.myserver.com/lams/ in your browser, the ServerURL should be that too.

Thanks,

Ernie

Posted by Ernie Ghiglione

8: Re: Re: 64 bit server LAMS error - Trying with YAJSW
In response to 7 05/04/11 01:25 PM
[ Reply | Forward ]
this is a screeprint of the problem i have when the aplication becomes a blank page, I checked the java.exe proccess memory usage and it was more than 450,000 kb, leaving 20mb as free memory in the server ¿is that normal?

Posted by Juan Antonio López Martínez

Attachments:
9: Re: Re: Re: 64 bit server LAMS error - Trying with YAJSW
In response to 8 05/04/11 01:45 PM
[ Reply | Forward ]
Hi Juan Antonio,

It seems that you have run out of permgem memory.

Open the run.bat file and see what settings you have for JAVA_OPTS.

Ideally, you want to have something like this:

set JAVA_OPTS=-server -Xms256m -Xmx1024m -XX:MaxPermSize=128m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=95 -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled

This will allocate a maximum of 1GB (-Xmx1024m) to LAMS and a max of 128MB as PermGem memory (-XX:MaxPermSize), which should be more than enough.

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum