Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Advice about Tomcat on x86_64 architecture..

prt

2007-07-10

Replies:


Thank you all for your help,

The second reason to use more than on tomcat is so i can stop one and the
others still work.
I compiled the mod_jk module on the server.

In catalina.sh i set JAVA_OPTS to "-server -Xms1g -Xmx1g -Xincgc"

I did test for maximum thread by run jsp with this code,
####################################
<%
try {
while(true){
   new TestThread().start();    
}
}
catch ( OutOfMemoryError e ) {System.out.println("Maximum threads = " +
TestThread.CREATE_COUNT);}
%>

<%!
public static class TestThread extends Thread {
private static int CREATE_COUNT = 0;

public TestThread() {
  CREATE_COUNT++;
}

public void run() {
  try {
   sleep(Integer.MAX_VALUE);
  }
  catch (InterruptedException e) {;}
}
}
%>
####################################
I get Maximum threads = 32684.


prt wrote:
>
> Hi to all,
> I have Dell PE 2950 with two Intel xeon dual core 5130 processors.
> I use this server to run website.
> I have three tomcat work in balance in mod_jk, and one Apache in front on
> port 80.
>
> The JVM and the tomcat that i have on the server are 32 bit architecture.
>
> My question is,
> Is it good to do so or will be better to install 64 bit architecture JVM
> and compile tomcat
> on the server ?
>
> Thank you all for help and sorry about my English.
>

--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.