• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Configure Tomcat issue

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22796
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to our Tomcat forum.
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please don't duplicate posts.
 
Saloon Keeper
Posts: 28076
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22796
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vijitha Kumara wrote:Please don't duplicate posts.


Thanks for pointing that out
 
Vijitha Kumara
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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're gonna buy things, buy this thing and I get a fat kickback:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic