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 37937 - displaying popup menu on tomcat node is slow
Summary: displaying popup menu on tomcat node is slow
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2003-12-09 20:17 UTC by Pavel Buzek
Modified: 2006-02-28 11:40 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 Pavel Buzek 2003-12-09 20:17:18 UTC
because tomcat plugin is checking server status

the solution is to cache the value, it has several
issues though:
- how to 'refresh' the status it the server is
started/stopped externally (can be ignored?)
- what should be the inital status (either assume
it's not running or check the first time)
Comment 1 Pavel Buzek 2003-12-10 04:32:29 UTC
cannot cache the value until the problem with instantiation will be
resolved (currently j2eeserver creates new instances of StartTomcat
and calls isRunning on them while another instance of StartTomcat is
starting the server)
Comment 2 Petr Jiricka 2003-12-10 08:00:22 UTC
Could the Tomcat plugin use java.lang.Process.exitValue() to check
whether the server is still running?

Comment 3 Pavel Buzek 2003-12-10 17:37:04 UTC
It could be used now when we always start the server from IDE and have
the process descriptor, but the j2eeserver lifecycle document counts
with an option that the server could be started externally before the
IDE starts and then it would be left running when the IDE exits (which
is good esp. for external servers) so we won't have the pd then. 
Comment 4 _ rkubacki 2003-12-12 10:11:36 UTC
To Petr: Do you mean to start the server with 'catalina.sh run' rather
than 'catalina.sh start'? Yes, that's possible. Of course server
started outside of IDE is a problem and requires to have some other
way how to ping the server anyway.

P4 is not accurate IMO
Comment 5 Petr Jiricka 2004-01-06 09:42:39 UTC
Currently the server is started using 'catalina.sh run'. I made this
change in order to implement the redirection of Tomcat stdout and
stderr to the IDE output window.
Comment 6 Pavel Buzek 2004-01-16 05:12:53 UTC
Start/Stop.. action solves the problem.
Comment 7 Jaroslav Pospisil 2006-02-28 11:40:17 UTC
VERIFIED