This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 52939 - NetBeans starts multiple instances of Tomcat for no apparent reason
Summary: NetBeans starts multiple instances of Tomcat for no apparent reason
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-05 02:23 UTC by pythagoras
Modified: 2005-10-18 17:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pythagoras 2005-01-05 02:23:19 UTC
Every once in a while, NetBeans starts a new 
Tomcat instance even if Tomcat is already 
running. There is only one open project, and it 
is using the bundled Tomcat server. 

  In order to reproduce this issue, try creating 
a Web application with some custom classes, 
servlets and JSPs and keep clicking on the "Run" 
button until Tomcat fails to start.

  This is especially important on low-end 
machines because starting a new Tomcat instance 
can cause excessive swapping.
Comment 1 Pavel Buzek 2005-02-18 16:24:31 UTC
Stepane, is it possible that tomcat is started if there is no response
from the http "ping" in isRunning?
Comment 2 Sherold Dev 2005-02-21 17:24:21 UTC
Yes, I guess this could happen if Tomcat's respond was slower then
1000 ms.

In NetBeans 4.1 it should be possible to overwrite the default timeout
value? It would be great, if you could confirm that this workaround is
working.

Go to:

<NB_USERDIR>/config/.nbattrs

and add the following line

<attr name="J2EE\InstalledServers\Tomcat_instance\runningCheckTimeout"
stringvalue="5000"/>

under:

<attributes version="1.0">
    <fileobject name="">

5000 is the timeout in ms.

Please note that this won't work in NB 4.0!
Comment 3 Sherold Dev 2005-10-18 17:29:32 UTC
Closing as WORKSFORME since I can't reproduce this issue and there is no farther
response from the user.