Re: Really dumb question -- how do I set up Tomcat 5 to run as a service on NT?

2004-01-03 Thread Jacob Kjome
Hi Bill,

Couple suggestions and a question...

First, the service.bat script should really be setting -Djava.io.tmpdir, 
just as the catalina.bat script does.  Additionally, unless you provide 
%JAVA_HOME%\lib\tools.jar to the --ImagePath, JSP compilation will fail, 
although you might be fooled in cases where JSP's were pre-compiled and 
mapped as servlets.  Try out a plain-jane non-precompiled JSP.  Probably 
also dump the contents of the work directory just to be sure.

Now for the question.  How does one tell the service to use the -server 
VM?  I've tried setting -server as one of the --JavaOptions, but that 
causes the server not to start.  I've also tried doing...
--Java %JAVA_HOME%\jre\bin\server\jvm.dll.  That seems to work, but then 
logging (at least to stdout.log) no longer works.

I assume that --Java java is just going to start up the default client 
VM, correct?  There's got to be a way to use the -server switch and not 
interfere with the service starting or logging to stdout stopping, 
otherwise this should be considered a bug in the procrun daemon.

Jake

At 07:01 PM 1/2/2004 -0800, you wrote:
The instructions to do it manually are at
http://jakarta.apache.org/commons/daemon/procrun.html.  There is also a new
'service.bat' file in the CVS
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/bin/service.bat,
that simplifies the process of manually installing Tomcat as a service.
Chang, Betty [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi -


I've looked through the docs,  and it says the following:

Tomcat will be installed as a Windows NT/2k/XP service no matter what
setting is selected.


However,  I  never ran an installation program - I just unzipped a file.
What do I run to install Tomcat 5 as a service?  I don't see an install
program.


Please forgive if this was a really dumb question.  I did try to scour
through the docs --  but a lot of the stuff is on the older versions of
Tomcat.


Thanks



Betty









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Really dumb question -- how do I set up Tomcat 5 to run as a service on NT?

2004-01-03 Thread Jacob Kjome
Hi Bill,

One quick follow-up to add to my previous comments...

When I used to use the old JavaService tomcat.exe (in Tomcat-4.x.xx), each 
time I started Tomcat, the stdout.log would be wiped clean upon 
startup.  With procrun, stdout never gets cleaned up.  I would actually 
prefer this behavior since the log can fill up over time and can get pretty 
huge which is undesireable.  All the other logs are rolled to account for 
this, but stdout will just end up one giant log which has to be manually 
deleted in order to wipe it clean.

So, should procrun be clearing the stdout.log (likewise, stderr.log, but 
hardly any logging goes to that as I've seen so far) by default as is my 
preferred behavior?  Is it (or should it be) configurable via setup of the 
service?

Jake

At 01:45 AM 1/3/2004 -0600, you wrote:
Hi Bill,

Couple suggestions and a question...

First, the service.bat script should really be setting -Djava.io.tmpdir, 
just as the catalina.bat script does.  Additionally, unless you provide 
%JAVA_HOME%\lib\tools.jar to the --ImagePath, JSP compilation will fail, 
although you might be fooled in cases where JSP's were pre-compiled and 
mapped as servlets.  Try out a plain-jane non-precompiled JSP.  Probably 
also dump the contents of the work directory just to be sure.

Now for the question.  How does one tell the service to use the -server 
VM?  I've tried setting -server as one of the --JavaOptions, but that 
causes the server not to start.  I've also tried doing...
--Java %JAVA_HOME%\jre\bin\server\jvm.dll.  That seems to work, but then 
logging (at least to stdout.log) no longer works.

I assume that --Java java is just going to start up the default client 
VM, correct?  There's got to be a way to use the -server switch and not 
interfere with the service starting or logging to stdout stopping, 
otherwise this should be considered a bug in the procrun daemon.

Jake

At 07:01 PM 1/2/2004 -0800, you wrote:
The instructions to do it manually are at
http://jakarta.apache.org/commons/daemon/procrun.html.  There is also a new
'service.bat' file in the CVS
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/bin/service.bat,
that simplifies the process of manually installing Tomcat as a service.
Chang, Betty [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi -


I've looked through the docs,  and it says the following:

Tomcat will be installed as a Windows NT/2k/XP service no matter what
setting is selected.


However,  I  never ran an installation program - I just unzipped a file.
What do I run to install Tomcat 5 as a service?  I don't see an install
program.


Please forgive if this was a really dumb question.  I did try to scour
through the docs --  but a lot of the stuff is on the older versions of
Tomcat.


Thanks



Betty









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Really dumb question -- how do I set up Tomcat 5 to run as a service on NT?

2004-01-03 Thread Bill Barker

Jacob Kjome [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi Bill,

 Couple suggestions and a question...

 First, the service.bat script should really be setting -Djava.io.tmpdir,
 just as the catalina.bat script does.  Additionally, unless you provide
 %JAVA_HOME%\lib\tools.jar to the --ImagePath, JSP compilation will fail,
 although you might be fooled in cases where JSP's were pre-compiled and
 mapped as servlets.  Try out a plain-jane non-precompiled JSP.  Probably
 also dump the contents of the work directory just to be sure.


Noted.  I'll see what the other developers opinions on this are before
changing anything (since 'service.bat' does pretty much what the installer
does).  But you make a good case :)

 Now for the question.  How does one tell the service to use the -server
 VM?  I've tried setting -server as one of the --JavaOptions, but that
 causes the server not to start.  I've also tried doing...
 --Java %JAVA_HOME%\jre\bin\server\jvm.dll.  That seems to work, but then
 logging (at least to stdout.log) no longer works.


Yup, that is a 'feature' in the current version.  I think that the next
major version of procrun will have a fix for this.

 I assume that --Java java is just going to start up the default client
 VM, correct?  There's got to be a way to use the -server switch and not
 interfere with the service starting or logging to stdout stopping,
 otherwise this should be considered a bug in the procrun daemon.


In the current CVS-HEAD (which should appear with 5.0.19), you should be
able to specify this with --JavaOptions.

 Jake

 At 07:01 PM 1/2/2004 -0800, you wrote:
 The instructions to do it manually are at
 http://jakarta.apache.org/commons/daemon/procrun.html.  There is also a
new
 'service.bat' file in the CVS

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/bin/
service.bat,
 that simplifies the process of manually installing Tomcat as a service.
 
 Chang, Betty [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Hi -
 
 
 
 I've looked through the docs,  and it says the following:
 
 Tomcat will be installed as a Windows NT/2k/XP service no matter what
 setting is selected.
 
 
 
 However,  I  never ran an installation program - I just unzipped a file.
 What do I run to install Tomcat 5 as a service?  I don't see an install
 program.
 
 
 
 Please forgive if this was a really dumb question.  I did try to scour
 through the docs --  but a lot of the stuff is on the older versions of
 Tomcat.
 
 
 
 Thanks
 
 
 
 Betty
 
 
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really dumb question -- how do I set up Tomcat 5 to run as a service on NT?

2004-01-03 Thread Bill Barker

Jacob Kjome [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi Bill,

 One quick follow-up to add to my previous comments...

 When I used to use the old JavaService tomcat.exe (in Tomcat-4.x.xx), each
 time I started Tomcat, the stdout.log would be wiped clean upon
 startup.  With procrun, stdout never gets cleaned up.  I would actually
 prefer this behavior since the log can fill up over time and can get
pretty
 huge which is undesireable.  All the other logs are rolled to account for
 this, but stdout will just end up one giant log which has to be manually
 deleted in order to wipe it clean.

 So, should procrun be clearing the stdout.log (likewise, stderr.log, but
 hardly any logging goes to that as I've seen so far) by default as is my
 preferred behavior?  Is it (or should it be) configurable via setup of the
 service?

Sounds like something that sould be considered as an enhansment :).


 Jake

 At 01:45 AM 1/3/2004 -0600, you wrote:
 Hi Bill,
 
 Couple suggestions and a question...
 
 First, the service.bat script should really be setting -Djava.io.tmpdir,
 just as the catalina.bat script does.  Additionally, unless you provide
 %JAVA_HOME%\lib\tools.jar to the --ImagePath, JSP compilation will fail,
 although you might be fooled in cases where JSP's were pre-compiled and
 mapped as servlets.  Try out a plain-jane non-precompiled JSP.  Probably
 also dump the contents of the work directory just to be sure.
 
 Now for the question.  How does one tell the service to use the -server
 VM?  I've tried setting -server as one of the --JavaOptions, but that
 causes the server not to start.  I've also tried doing...
 --Java %JAVA_HOME%\jre\bin\server\jvm.dll.  That seems to work, but
then
 logging (at least to stdout.log) no longer works.
 
 I assume that --Java java is just going to start up the default client
 VM, correct?  There's got to be a way to use the -server switch and not
 interfere with the service starting or logging to stdout stopping,
 otherwise this should be considered a bug in the procrun daemon.
 
 Jake
 
 At 07:01 PM 1/2/2004 -0800, you wrote:
 The instructions to do it manually are at
 http://jakarta.apache.org/commons/daemon/procrun.html.  There is also a
new
 'service.bat' file in the CVS

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/bin
/service.bat,
 that simplifies the process of manually installing Tomcat as a service.
 
 Chang, Betty [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Hi -
 
 
 
 I've looked through the docs,  and it says the following:
 
 Tomcat will be installed as a Windows NT/2k/XP service no matter what
 setting is selected.
 
 
 
 However,  I  never ran an installation program - I just unzipped a file.
 What do I run to install Tomcat 5 as a service?  I don't see an install
 program.
 
 
 
 Please forgive if this was a really dumb question.  I did try to scour
 through the docs --  but a lot of the stuff is on the older versions of
 Tomcat.
 
 
 
 Thanks
 
 
 
 Betty
 
 
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.16 Server Can't Find Keystore

2004-01-03 Thread Merrill Cornish
Yesterday, in response to a post asking how to run Tomcat as a server, 
someone pointed out that the *.exe binary, which includes the installer, 
is now available.  (Hooray!)  So, I downloaded it, and it installed 
flawlessly.  I had renamed my previous Tomcat 5.0.16 installation so the 
server version could be installed in parallel.

I am using HTTPS, and I have enabled the proper connectors in server.xml 
as I had done before. However, with the Tomcat service started, when I 
start the application, it fails with the following entry in the 
stdout.log file:

java.io.FileNotFoundException: 
C:\WINDOWS\system32\config\systemprofile\.keystore (The system cannot 
find the file specified)

The error message is valid in that my .keystore is under C:\Document 
Settings.  That keystore had been generated by the Java keytool utility 
using the instructions in Tomcat for establishing an SSL connector..  I 
tried generating another key, thinking maybe this version looked in a 
different place.  However, the keytool failed claiming that the alias 
Tomcat already existed, implying it was looking C:\Document Settings.

I have check server.xml and web.xml, but I can't find anything to 
specify where Tomcat is to look for the .keystore file.

Anyone have any suggestions as to how to make Tomcat look in C:\Document 
Settings or how to make keytool generate a .keystore file in 
C:\WINDOWS\System32\config\systemprofile where it's looking?

Merrill Cornish



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Have some questions, also possible contract work up for grabs

2004-01-03 Thread George Sexton
Stay away from hosting. Very few hosting companies have their act
together. Buy your own hardware and co-locate it if you must.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 02, 2004 4:02 PM
To: [EMAIL PROTECTED]
Subject: Have some questions, also possible contract work up for grabs


Hi everyone,

I had some questions regarding Tomcat.  Is Tomcat able to handle a
steady 
stream of about 200 years efficiently without crashing, being
unreliable, 
etc.. ? I personally don't know the limitations of it as I am fairly new
to 
Java.

What would an ideal server be to handle that type of userbase?  Right
now it's 
running on a 1ghz celeron with I believe 512mb of ram running linux.

Do any hosting companies offer reasonably priced colocation or flexible 
accounts with tomcat, php, and mysql installed?  The IT company I work
for has 
developed a great piece of software using JSP and Java technology but we
need 
to get it onto a good box for production use.

Does anyone here offer services such as using SSH to install Tomcat
remotely?  
We would be willing to pay for someone to install Tomcat in a short
timeframe.  

The ideal person would be someone that knows Tomcat installation quite
well.  
We have installed it on a couple boxes,  but usually by a lot of trial
and 
error.  We would like to get it up and running properly very quickly.

If anyone is interested, please send me an email and I can send you the 
details.  I apologize in advance if this is not the place for an email
like 
this.  I figured this was probably one of the best places for an
experienced 
Tomcat userbase.

Thank you all very much for your time,

~Graham



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Broken Pipe and Tomcat 4.1.24 -- Fixed?

2004-01-03 Thread news.basebeans.net
I'm using Tomcat 4.1.24 and I'm still getting broken pipe stack traces 
in my catalina log.

This ultimately forces a Out of Memory error.  Are we certain that this 
problem was resolved with 4.1.24? 
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4663)

Lukas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


catch-all host mapping

2004-01-03 Thread Marco Pöhler
Hi,

I want to map every request like www1.mydomain.com and www2.mydomain.com to
one single webapp. That is possible using something like that:

-%-
Host name=www1.mydomain.com ...
Aliaswww2.mydomain.com/Alias
...
/Host
-%-

That work's but I don't know how many wwwX.mydomains.com exists in the
future, and I don't want to add a Alias-line every time I add a new
subdomain. In my thoughts it should be possible to configure something like
that:

-%-
Host name=*.mydomain.com ...
...
/Host
-%-

But that doesn't work :-( Any Ideas to get this working ? I'm using tomcat
5.0.16 on jdk1.4.2, SuSE Linux.

thanks in advance

Marco

---
http://www.poehlerpoehler.de
http://www.archive4mail.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5.0.16 Replication

2004-01-03 Thread Filip Hanik
it will come out in the next release.

Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 9:41 AM
To: Tomcat-user
Subject: tomcat 5.0.16 Replication


The new tomcat 5.0.16 replication seams to work odly.

From what I've read from the documentation and the mailing list,
the clustering is supposed to be done synchronously.

Right?

Well that's not what's happening on my end, the client receives the
response before the whole replication thing is done.

ex:

I got a webpage that fetches data and if data is found put it in
the session and return a webpage containing a IFRAME.
In the IFRAME, the src hits a webpage on the same cluster and loads
up the data found in the session and display it.

Well sometimes, when the IFRAME is shown and that hit is forwarded
to different server than the first access, the data in the session is empty.
Then once the page is loaded (empty) and returned to the client, I
get the replication message in my logs. (The message containing the
data that was supposed to be already replicated).

[Cluster config]
Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
  name=PortalClusterJP
  debug=10

serviceclass=org.apache.catalina.cluster.mcast.McastService
  mcastAddr=228.0.0.5
  mcastPort=45564
  mcastFrequency=500
  mcastDropTime=3000
  tcpThreadCount=2
  tcpListenAddress=auto
  tcpListenPort=4001
  tcpSelectorTimeout=100
  printToScreen=true
  expireSessionsOnShutdown=false
  useDirtyFlag=true
  replicationMode=synchronous
/

Valve className=org.apache.catalina.cluster.tcp.ReplicationValve
   filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/

[end Cluster Config]

Any idea on what could be going wrong here?

Jean-Philippe Bélanger
CGI


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



catch-all host mapping

2004-01-03 Thread Marco Pöhler
Hi,

I want to map every request like www1.mydomain.com and www2.mydomain.com to
one single webapp. That is possible using something like that:

-%-
Host name=www1.mydomain.com ...
Aliaswww2.mydomain.com/Alias
...
/Host
-%-

That work's but I don't know how many wwwX.mydomains.com exists in the
future, and I don't want to add a Alias-line every time I add a new
subdomain. In my thoughts it should be possible to configure something like
that:

-%-
Host name=*.mydomain.com ...
...
/Host
-%-

But that doesn't work :-( Any Ideas to get this working ? I'm using tomcat
5.0.16 on jdk1.4.2, SuSE Linux.

thanks in advance

Marco

---
http://www.poehlerpoehler.de
http://www.archive4mail.com




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fw: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots

2004-01-03 Thread George Shafik
Hi Peter,

I'm using Apache 2.0.48, Tomcat 4.1.29, Jakarta-Tomcat-Connectors 4.1.29.
I'm hoping the problem it is not the mod_jk2.so module as I went to great
trouble in order to generate it on my RH9 Linux Kernal Version 2.4.20-8
platform. I had to recompile apr, apr-util code and only ant native
managed to build mod_jk2.so

Below are the following files:
error.log from Apache 2.0.48
jk2.properties
workers.properties
snippet from httpd.conf
snippet from server.xml

Many thanks for any help you may be able to give.

Cheers,
George


### error.log file in Apache2.0.48 log
###
[Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7398 in none
of the 256 scoreboard slots
[Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7399 in none
of the 256 scoreboard slots
[Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7400 in none
of the 256 scoreboard slots
[Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7402 in none
of the 256 scoreboard slots
[Sat Jan 03 23:01:48 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.3-dev
configured -- resuming normal operations
[Sun Jan 04 12:08:37 2004] [notice] caught SIGTERM, shutting down
#

### jk2.prorperties ###
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
apr.jniModeSo=/usr/local/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
##

## workers.properties 
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


snippet from httpd.conf - reset of file is unchanged
#
LoadModule jk2_module modules/mod_jk2.so


 snippet from server.xml ###
# PLEASE NOTE: I've alternated between both connectors still same error
in error.log Apache2 file and this is automatically built for # me
when I built Tomcat 4.1.29 from source.

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/

 Original Message - 

From: Peter O'Reilly [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 1:49 PM
Subject: Re: jk2_init() Can't find child  in none of the 1024 scoreboard
slots


 The quickest way to do this is,

 ( assumes testing with http://localhost )

 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes
 to your directory.

 2) Add the html code to call one of the servlets.

 If you can call one of the example servlets then you can backtrack and get
 ride of the example servlets and JSP and add your own.

 If testing on localhost make sure you have workers.properies,
property.host
 =localhost
 AND
 make sure the servlet.xml Context = localhost

 When that's complete you'll want to clean up the web.xml file also.

 -Peter



 At 09:35 PM 11/4/2003, you wrote:
 I'm having the same problems, Tony. I got mod_jk2 compiled and tried to
 setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the
 missing child (children ? ;)) errors,  but I was able to get the
 servlets and JSPs working, though they spit out errors occasionally. Can
 you post your jk2.properties and workers2.properties? I'm trying to
 update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because
 it is obviously unusable now.
 
 Regards,
 pascal chong
 
 
 
 Tony F. White wrote:
 
  Hello,
  
  
  
  I am hoping someone might be able to help me work out what on earth is
  going on here, we have just updated tomcat to 4.1.29 and we are having
  problems getting the connectors from 

RE: Linux Kernel 2.6.0 success

2004-01-03 Thread Michael Coughlan
 -Original Message-
 From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 02, 2004 8:19 PM
 To: Tomcat Users List
 Subject: Linux Kernel 2.6.0 success

 I am successfully running the latest Apache/Tomcat4/mod_jk/openssl/jdk
 with the new kernel 2.6.0 with RedHat9.

Was there some kernel advancement that improves Tomcat's performance? 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Have some questions, also possible contract work up for grabs

2004-01-03 Thread Richard S. Huntrods
Graham,

Hi everyone,

I had some questions regarding Tomcat.  Is Tomcat able to handle a steady 
stream of about 200 years efficiently without crashing, being unreliable, 
etc.. ? I personally don't know the limitations of it as I am fairly new to 
Java.

Assuming your application is written and tested, yes. I'm running a 
servlet/tomcat/mysql application that currently has 3000 users. The real 
question is not how many users but how many concurrent users. My app 
has never seen more than 50 simulataneous users, and works fine on a Sun 
SPARC E-250.

What would an ideal server be to handle that type of userbase?  Right now it's 
running on a 1ghz celeron with I believe 512mb of ram running linux.

Again, simultaneous users/sessions is the key. I'm looking at upgrading 
to a 2-4 CPU machine, possibly Intel architecture as we ramp up to 2 
users in the next year. No OS has been chosen yet (probably a unix flavor).

Do any hosting companies offer reasonably priced colocation or flexible 
accounts with tomcat, php, and mysql installed?  The IT company I work for has 
developed a great piece of software using JSP and Java technology but we need 
to get it onto a good box for production use.

Waste of money and time. As someone else said - build your own and 
co-locate if necessary. Even if you did manage to get someone able to 
install/support tomcat and mysql, you'd probably pay through the nose 
for actual support (i.e. when something goes down). Far better to be in 
total control. PC's are not expensive, and a good OS 
(unix/linux/solaris) is not expensive. Co-locate? probably expensive, 
but still cheaper than what you would pay for REAL hosting (i.e. that 
worked when things broke). Cost of building your own and KNOWING what's 
going on... priceless.

Does anyone here offer services such as using SSH to install Tomcat remotely?  
We would be willing to pay for someone to install Tomcat in a short timeframe. 

I doubt it. Most ISP's cannot even support PHP or perl, let alone 
tomcat/mysql/java.



The ideal person would be someone that knows Tomcat installation quite well.  
We have installed it on a couple boxes,  but usually by a lot of trial and 
error.  We would like to get it up and running properly very quickly.

Sorry to say this, but spend time with the docs and spend time doing the 
builds yourself.

If anyone is interested, please send me an email and I can send you the 
details.  I apologize in advance if this is not the place for an email like 
this.  I figured this was probably one of the best places for an experienced 
Tomcat userbase.

As long as you don't want to integrate Apache and Tomcat, you can email 
me. I will not put both on the same machine, after finding that the web 
server was killing tomcat performance (due to the number of web hits). I 
split Apache off to it's own server, and used a simple firewall 
(appliance) to forward port 80 requests to one machine, with port 443 
(SSL) to the tomcat server. Secure application access, no hit from the 
web server.

Thank you all very much for your time,

Cheers,

-Richard

~Graham

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Linux Kernel 2.6.0 success

2004-01-03 Thread Oscar Carrillo
There are advancements that may prove beneficial.

It should be much better in handling threads. From what I remember, orders 
of magnitude better. I think hundreds of thousands of threads can now be 
handled nicely. I imagine that this would translate into better handling 
of multiple connections to Apache and Tomcat. If I remember correctly, 
this is due to the new O1 scheculer. Also, memory handling is supposed to 
be much improved.

Handling of multiple processors is supposed to be much improved so that 
should translate into a better server in all respects. It's also a better 
desktop environment too, because it handles multiple processes much 
better so it feels more responsive to the user. I can vouch for this, as I 
can burn a DVD and play a FPS game under wine without noticing.

I'm not planning on doing any benchmarks, unless someone knows of or
provides me with a war file to deploy and test.

BTW, today I added to the mix Postgresql-7.4.1 via JNDI 
with dbcp-commons-pool.

I'll be putting all that I've learned about installing the aforementioned 
on my page within the next couple of days at:

http://daydream.stanford.edu/tomcat/install_web_services.html

Oscar

On Sat, 3 Jan 2004, Michael Coughlan wrote:

  -Original Message-
  From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 02, 2004 8:19 PM
  To: Tomcat Users List
  Subject: Linux Kernel 2.6.0 success
 
  I am successfully running the latest Apache/Tomcat4/mod_jk/openssl/jdk
  with the new kernel 2.6.0 with RedHat9.
 
 Was there some kernel advancement that improves Tomcat's performance? 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Have some questions, also possible contract work up for grabs

2004-01-03 Thread Oscar Carrillo

 Do any hosting companies offer reasonably priced colocation or flexible 
 accounts with tomcat, php, and mysql installed?  The IT company I work for has 
 developed a great piece of software using JSP and Java technology but we need 
 to get it onto a good box for production use.
 
 Waste of money and time. As someone else said - build your own and 
 co-locate if necessary. Even if you did manage to get someone able to 
 install/support tomcat and mysql, you'd probably pay through the nose 
 for actual support (i.e. when something goes down). Far better to be in 
 total control. PC's are not expensive, and a good OS 
 (unix/linux/solaris) is not expensive. Co-locate? probably expensive, 
 but still cheaper than what you would pay for REAL hosting (i.e. that 
 worked when things broke). Cost of building your own and KNOWING what's 
 going on... priceless.

Co-locating can be pretty cheap, but someone has to setup all the stuff.  
Whether you do it yourself, or pay someone, all depends on your needs. I
agree with you on handling your own installation, but there is a trade-off
of time obviously.

 
 
 Does anyone here offer services such as using SSH to install Tomcat remotely?  
 We would be willing to pay for someone to install Tomcat in a short timeframe. 
 
 I doubt it. Most ISP's cannot even support PHP or perl, let alone 
 tomcat/mysql/java.

Some ISPs will, but you are probably better getting a sub-contractor who 
has a relationship with the ISP. Your small-to-medium datacenters I think 
are better for this.

 
  
 
 The ideal person would be someone that knows Tomcat installation quite well.  
 We have installed it on a couple boxes,  but usually by a lot of trial and 
 error.  We would like to get it up and running properly very quickly.
 
 Sorry to say this, but spend time with the docs and spend time doing the 
 builds yourself.
 
 
 If anyone is interested, please send me an email and I can send you the 
 details.  I apologize in advance if this is not the place for an email like 
 this.  I figured this was probably one of the best places for an experienced 
 Tomcat userbase.
 
 As long as you don't want to integrate Apache and Tomcat, you can email 
 me. I will not put both on the same machine, after finding that the web 
 server was killing tomcat performance (due to the number of web hits). I 
 split Apache off to it's own server, and used a simple firewall 
 (appliance) to forward port 80 requests to one machine, with port 443 
 (SSL) to the tomcat server. Secure application access, no hit from the 
 web server.

Some people like me don't have Apache doing much except passing the 
request over to Tomcat. In this case, I doubt it would benefit much to 
have Apache on a different box. I like Apache mostly for the more tested 
environment and handling of SSL, Virtual Hosts, etc.

Oscar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]