tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: jstack and Tomcat 6 on Windows
Date Fri, 19 Sep 2008 22:16:41 GMT

I would steer clear of any windowsInstaller messWithYourRegistry windows specific utilities
and/or programs

SET JAVA_HOME=SourceFolderLocationWhereJavaIsInstalled
SET CATALINA_HOME=SourceFolderLocationWhereTomcatIsInstalled
SET JAVA_OPTS=whatever java options you need to set
then
java -jar bootstrap.jar works on every platform 

Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission. 


> Date: Fri, 19 Sep 2008 23:42:42 +0200
> From: aw@ice-sa.com
> To: users@tomcat.apache.org
> Subject: Re: jstack and Tomcat 6 on Windows
> 
> André Warnier wrote:
> > Brian Clark wrote:
> >> Hello,
> >>
> >> I run Tomcat 6.0.x as a service on Windows 2003, using Sun JDK 1.6. I 
> >> was trying to use the jstack program, part of the JDK, to get a stack 
> >> dump from Tomcat/Java on my server. However, I ran into a problem. 
> >> First of all, Tomcat on Windows seems to "hide" the JVM instance. Java 
> >> doesn't show up in my process listing. I tried running jstack against 
> >> the  Tomcat PID but it errored out.
> >> Any idea how to make jstack work with Tomcat running as a service on 
> >> Win2k3?
> >>
> > I can't answer your question, but a look here might provide a clue :
> > http://commons.apache.org/daemon/procrun.html
> > 
> > That seems to be the way in which Tomcat is now implemented under 
> > Windows. Versions prior to 5.5 used to have a structure similar to the 
> > Unix version, with startup.bat and catalina.bat invoking Tomcat via 
> > Java, but that seems to have changed nowadays.
> > 
> > Also, if it might help somewhat : open a command window and navigate to 
> > the Tomcat/bin directory. Then, instead of running tomcat as a service, 
> > just enter the "tomcatx.exe" command (where x is probably 6 in your 
> > case) (not the tomcatxW.exe). That will run Tomcat in the command 
> > window, maybe easier for you to figure out what is going on.
> > Not for me though.
> > 
> 
> Addendum :
> I just had another look at the Tomcat site. For version 5.5, there are 2 
> downloads for Windows : one is a zip, the other an msi installer.
> I must have in the past downloaded and installed the msi.
> I downloaded the zip version now, and that one seems to contain the 
> usual startup.bat and catalina.bat files, in addition to the Win32 
> tomcat5 and tomcat5W executables.
> Maybe the .bat files allow to start Tomcat in the "traditional" way, via 
> Java etc.. ?
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message