I fixed the problem, my code had a BUG.

------ Original Message ------
From: "Sterpu Victor" <vic...@caido.ro>
To: users@tomcat.apache.org
Sent: 11/10/2015 3:10:27 PM
Subject: Windows service with apache tomcat launches too many instances of the aplication

Hello

I made a windows service using the instructions from here http://web.archive.org/web/20090228071059/http://blog.platinumsolutions.com/node/234. I renamed the files tomcat5.exe and tomcat5w.exe to CaidoServers.exec and CaidoServersw.exe and I runned the command:

CaidoServers.exe //IS//CaidoServers --Install=C:\CaidoServers\bin\CaidoServers.exe --Description="Caido Servers Service" --Jvm=auto --Classpath=C:\CaidoServers\classes;C:\CaidoServers\lib\* --StartMode=jvm --StartClass=Daemons.CaidoServiceInstaller --StartMethod=windowsService --StartParams=start --StopMode=jvm --StopClass=Daemons.CaidoServiceInstaller --StopMethod=windowsService --StopParams=stop --LogPath=C:\CaidoServers\logs --StdOutput=auto --StdError=auto

The service connects to a database. The problem is that about every minute a new instance of my java application is launched and in a few hours the server is blocked. Why does this heapens? I don't know how to debug this. Cound it be a windows problem or a tomcat problem? In the windows services settings are: First failure: take no action, Second no action, Subsequent failures: no action.

Thank you


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to