Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan November 16, 2009 1:28 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Lisa Simpson November 16, 2009 1:35 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan November 16, 2009 1:38 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Travis Haagen November 16, 2009 1:39 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan November 16, 2009 2:17 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan November 17, 2009 10:09 AM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Silvano Fari July 9, 2010 1:25 AM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan July 9, 2010 12:14 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Silvano Fari July 11, 2010 11:53 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan July 12, 2010 7:22 AM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Silvano Fari July 13, 2010 7:37 AM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Marcos Rivera August 20, 2010 5:31 AM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan September 7, 2010 12:27 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Joshua Spangler December 22, 2010 8:32 AM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan December 22, 2010 3:07 PM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Joshua Spangler December 27, 2010 11:14 AM
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB Jonas Yuan December 27, 2010 11:49 AM
Jonas Yuan
Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
November 16, 2009 1:28 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

If you are running 64-bit Windows, please note that Apache Tomcat cannot run as a Windows service if you are using a 64-bit JDK. Please ensure that you are using a 32-bit JDK.

It is unable to start Tomcat as service after allocating higher JVM Memory like 2048MB.

Thus there is only 1024MB memory available for JVM in Tomcat with a 32-bit JDK.

There would be 1.5GB memory available for JVM in tomcat with a 32-bit JDK when using Liferay portal patches.

Any solution on Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM settings -Xmx2048MB?

Thanks

Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Lisa Simpson
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
November 16, 2009 1:35 PM
Answer

Lisa Simpson

Rank: Liferay Legend

Posts: 2034

Join Date: March 5, 2009

Recent Posts

You know what I'm going to say Jonas... The best fix for Windows problems is installing Linux emoticon Windows 64 *grimace* All I can do is sympatheize with you :/ Sorry!
Jonas Yuan
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
November 16, 2009 1:38 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Jimi,

Thanks. Clients should like you, using Linux, non Windows servers. :-)

Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Travis Haagen
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
November 16, 2009 1:39 PM
Answer

Travis Haagen

Rank: New Member

Posts: 3

Join Date: November 16, 2009

Recent Posts

There is a way to get Tomcat 6 to run with a 64-bit JVM. I have done it with non-Liferay applications, but I too am trying to get Liferay to run with a 64-bit JVM on Windows Server 2008 x64.

Here's what you need:

(1) install 64-bit JVM

(2) download the x64 Tomcat binaries and use them as a replacement for the 32-bit binaries (the AMD binaries work fine on Intel x64 systems). Here's the binaries for Tomcat 6.0.18

http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/res/procrun/amd64/

(3) You MUST right-click the files from step#2 above after you copy them to the tomcat/bin folder, and go to Properties --> Compatibility tab --> and check "Run this program as an administrator"

(4) Install the tomcat service as you normally would

http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html

Again, this has worked for me with non-Liferay applications (5 different ones actually), and you can see the thread I started for the errors that Liferay produces when I try the same thing.

http://www.liferay.com/web/guest/community/forums/-/message_boards/message/4283092
Jonas Yuan
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
November 16, 2009 2:17 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Travis,

Thank you. The x64 Tomcat binaries are required.

Simply replacing tomcat6.exe and tomcat6w.exe with x64 versions, it is working well now.

Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Jonas Yuan
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
November 17, 2009 10:09 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Best combination should be
1) Window server 2008 64bit, 64-bit JDK 1.6 and Tomcat 64-bit.
2) Window server 2003 32bit, 32-bit JDK 1.6 and Tomcat 32-bit.

Limitation for 2) only 1024MB is available.

Solution summary:
using 1) Window server 2008 64bit, 64-bit JDK 1.6 and Tomcat 64-bit.
Then we should get:
a) Tomcat as a windows service, JVM can be set as 2048MB or bigger
b) Staring time should be shorter.

The following are sample steps to achieve the goal:
Window server 2008/2003 64 bit, 64-bit JDK 1.6 and Tomcat 64-bit.

1) Install Windows Server 2008 (64b bit)
2) Install 64-bit JDK and set $JAVA_HOME
3) Install Liferay-Tomcat 6 bundle
4) Set $JAVA_HOME in $TOMCAT_AS_DIR/bin/setenv.bat
5) Rename tomcat6.exe and tomcat6w.exe at $TOMCAT_AS_DIR/bin/;
6) Download tomcat6.exe and tomcat6w.exe from http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/res/procrun/amd64/
And drop them to $TOMCAT_AS_DIR/bin/
7) Start service.bat install tomcat6;
8) Use >tomcat6w.exe //ES//tomcat6 to set JVM parameters to 2048MB or bigger

That’s it.

Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Silvano Fari
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
July 9, 2010 1:25 AM
Answer

Silvano Fari

Rank: Junior Member

Posts: 58

Join Date: June 16, 2010

Recent Posts

I have a liferay 5.2.3 tomcat bundle on a Windows Server 2008 R2 Standard x64. Setting up the service works fine also starting the service works but starting liferay fails with several log entries claiming:

09:46:13,895 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null

and then

09:46:14,083 ERROR [ContextLoader:215] Context initialization failed


after that there is a bunch of stack traces. I will attach the log file with them.

Any idea what's wrong here?
Attachments: stdout_20100709.log (406.0k)
Jonas Yuan
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
July 9, 2010 12:14 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Silvano Fari
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
July 11, 2010 11:53 PM
Answer

Silvano Fari

Rank: Junior Member

Posts: 58

Join Date: June 16, 2010

Recent Posts

Hi Jonas

Thanks, I already refered to this. To me it seams that all the relevant steps you already described in your thread.
What was your exact environment? The same I have?

Is my error completely unknown to you?

Thanks
Silvano
Jonas Yuan
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
July 12, 2010 7:22 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Silvano,

The issue you got is normal for tomcat as a service. I got same issue before.

09:46:13,895 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null

and then

09:46:14,083 ERROR [ContextLoader:215] Context initialization failed

When using proper tomcat service binaries, above issues got fixed.

Hope that this helps,

Thanks.

Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Silvano Fari
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
July 13, 2010 7:37 AM
Answer

Silvano Fari

Rank: Junior Member

Posts: 58

Join Date: June 16, 2010

Recent Posts

Hi Jonas

I replaced the binaries again with the ones refered on the wiki site. They work! But I think the reason for the problem were some missing VM arguments im my service definition.

Thanks a lot for your help!
Silvano
Marcos Rivera
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
August 20, 2010 5:31 AM
Answer

Marcos Rivera

Rank: New Member

Posts: 1

Join Date: August 20, 2010

Recent Posts

Sorry to sound like the n00b, but in windows with Tomcat6.exe as a service, how do I set memory settings?

I went to registry and modified the service to make it like:

1 "C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\tomcat6.exe" //RS//Tomcat6 --JvmMs 768 --JvmMx 1536 ++JvmOptions="-XX:MaxPermSize=256m"


I see no change in memory and it only loads up to 365mb or so. I am running Win2008 Std x64, Tomcat 64-bit as a windows service.
Jonas Yuan
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
September 7, 2010 12:27 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Joshua Spangler
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
December 22, 2010 8:32 AM
Answer

Joshua Spangler

Rank: New Member

Posts: 2

Join Date: November 29, 2010

Recent Posts

Jonas,

The link to http://www.liferay.com/community/wiki/-/wiki/Main/Tomcat+6+as+a+Windows+Service+in+Windows+server+2008+and+a+64-bit+JDK+6 is not found.
All I get is:
"This page is empty. Use the buttons below to create it or to search for the words in the title."

Can you repost the updated link?

Thanks,
Josh
Jonas Yuan
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
December 22, 2010 3:07 PM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Joshua Spangler
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
December 27, 2010 11:14 AM
Answer

Joshua Spangler

Rank: New Member

Posts: 2

Join Date: November 29, 2010

Recent Posts

Thanks Jonas, that worked.

Josh
Jonas Yuan
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
December 27, 2010 11:49 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Cool! Josh.

Thanks to share this, :-)

Jonas Yuan
Hitoshi Ozawa
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
February 16, 2011 4:55 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Would appreciate if you can provide us with the URL of the sourceforge site.
Pierre A
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
February 18, 2011 5:08 AM
Answer

Pierre A

Rank: New Member

Posts: 3

Join Date: October 15, 2010

Recent Posts

my mistake, it isn't on sourceforge.

here is the link from an apache mirror site in france
Hitoshi Ozawa
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
February 18, 2011 4:57 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Thanks. I'll give it a try on my Intel 64 cpu.
Brian Scott Schupbach
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
March 28, 2011 1:32 PM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

Alright, I've followed all the instructions and thought that I had completed this successfully because I was able to start the tomcat6 service.

However, when I go to http://localhost:8080/ nothing shows up. When I use startup.bat liferay launches like it should. Any ideas as to what could be wrong?

Here is what my catalina.out file messages look like:
 1
 2Mar 28, 2011 3:26:56 PM org.apache.catalina.core.AprLifecycleListener init
 3INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\liferay-portal-6.0.5\tomcat-6.0.26\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\Jre6\bin;C:\Program Files (x86)\Java\jdk1.6.0_24\bin;C:\Program Files (x86)\Java\jdk1.6.0_24\bin;C:\liferay-portal-6.0.5\tomcat-6.0.26\bin
 4Mar 28, 2011 3:26:56 PM org.apache.coyote.http11.Http11Protocol init
 5INFO: Initializing Coyote HTTP/1.1 on http-8080
 6Mar 28, 2011 3:26:56 PM org.apache.catalina.startup.Catalina load
 7INFO: Initialization processed in 497 ms
 8Mar 28, 2011 3:26:56 PM org.apache.catalina.core.StandardService start
 9INFO: Starting service Catalina
10Mar 28, 2011 3:26:56 PM org.apache.catalina.core.StandardEngine start
11INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
12Mar 28, 2011 3:26:56 PM org.apache.catalina.startup.HostConfig deployDescriptor
13INFO: Deploying configuration descriptor ROOT.xml
14Mar 28, 2011 3:27:22 PM org.apache.catalina.core.StandardContext start
15SEVERE: Error listenerStart
16Mar 28, 2011 3:27:22 PM org.apache.catalina.core.StandardContext start
17SEVERE: Context [] startup failed due to previous errors


Any help would be much appreciated.

Thanks,

Brian
Brian Scott Schupbach
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
March 28, 2011 1:42 PM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

Actually I take that back...it says that the service is started but when I right click on it and hit refresh it is actually stopped.

Obviously something is not correct...
Hitoshi Ozawa
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
March 28, 2011 3:19 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

17SEVERE: Context [] startup failed du17SEVERE: Context [] startup failed due to previous errorse to previous errors


There seems to be some error during startup. Is there some error before the console log you've uploaded?
Brian Scott Schupbach
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
March 29, 2011 8:17 AM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

Thanks for the quick response.

Unfortunately, there is not. It's odd because when I use startup.bat liferay starts as normal. But when I start the service I created then it displays that error. I'm pretty confused...
Brian Scott Schupbach
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
March 29, 2011 1:45 PM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

Alright, after a few hours of research I was able to fix the issue by increasing the memory in the java virtual machine.

tomcat6 //US//Tomcat6 --JvmMx 1024 ++JvmOptions="-XX:MaxPermSize=256m"

Thanks for the help!
Hitoshi Ozawa
Resolved: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
March 29, 2011 2:32 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Sorry that I wasn't able to help you too much.
Sonnie Hook
RE: Tomcat 6 in Windows 64bit and a 64-JDK 1.6 - JVM -Xmx2048MB
October 26, 2011 7:37 PM
Answer

Sonnie Hook

Rank: New Member

Posts: 1

Join Date: October 26, 2011

Recent Posts

Hi, i have increased memory size to 512m, Initial memory pool & Maximum memory pool size: 2048MB
Still got error when startup the service ( installed succesfully and keeps running )

In stdout:
ERROR [PortalBeanLocatorUtil:42] BeanLocator is null tomcat

in catalina:
Error listenerStart

The whole package is copied from a windows 2003, which is still working good.