• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Configure Tomcat issue

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have tomcat installed as a service on a Windows 2008 server. The service is running fine. But when I try to use Configure Tomcat, I get the following error.

The specified service does not exist as an installed service.
unable to open the service 'tomcat6'

The main issue is that I have to specify the heap size for tomcat. But, since it is a service, I do not have a catalina.bat file. I have tried googling it and in most places they suggest using Configure Tomcat.
I cannot use the zipped version of tomcat as this is being used to run a BMC Remedy application. And it is in the production environement. So ; I cannot mess with it without knowing something definite.

I have also tried JAVA_OPTS and CATALINA_OPTS enviroment variables. But, I cannot check if they are actually used for running tomcat.

Any inputs are welcome. Thanks in advance.
 
Sheriff
Posts: 21972
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Tomcat forum.
 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't duplicate posts.
 
Saloon Keeper
Posts: 22266
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best place to put stuff like that is normally TOMCAT_HOME/bin/setenv.bat, which is a file you have to create yourself. You'd set environment variables fot Tomcat in there.

Of course, the rules are different when running as a Windows service, so I don't know if that works or not.
 
Rob Spoor
Sheriff
Posts: 21972
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vijitha Kumara wrote:Please don't duplicate posts.


Thanks for pointing that out
 
Vijitha Kumara
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have tomcat6w.exe inside the bin folder of the installation? If I remember correct it can be used to configure the jvm args etc...
 
Sandeep Sanaboyina
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the error when running the tomcat6w.exe.

I will try the setenv.bat. But, I think it will be the same as setting the System Variables. How can I know if they are being used ?
 
Sandeep Sanaboyina
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a small jsp that displays the total memory and memory used by Tomcat on the screen.

I have tried with JAVA_OPTS and CATALINA_OPTS in the environment variables.

I have also tried setenv.bat

None if these are affecting the heap size of tomcat.

Is there any way I can fix the tomcat6w.exe to work ? Update some registries may be ? It used to work before.

Or any other location to set the heap for the Apache windows service ?
 
Vijitha Kumara
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't really play much with these windows services... But if you get that in error in tomcat6w.exe it may depict that some problems with installation. Is it possible for you to make a fresh install?
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic