• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

tomcat don�t release port 8080 when on shot down

 
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all ..
I have some kind of weird problem, im using apache 1.3 and tomcat 4.4 with mod_jk as the connector
Running on Solaris unix .
every thing is working just fine except when I shot down tomcat with bin/catalina.sh stop
the port 8080 is still remind busy by tomcat (netstat �a | grep 8080 shows tomcat java )
when I open the server.xml I see that there is something called : CoyoteConnector that takes this port
and tomcat just need it .
what is wrong here? why is the port stay busy ?
Thanks
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have any non-daemon threads running in your app that may be keeping Tomcat from shutting down?
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is "non-daemon threads" app?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your app, does any of your code spawn threads?
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no it dose not
in fact when i lock in the logs again i see that the only thing that use the port 8080 is : CoyoteConnector
and when i use to track the busy port with lsof + ps -ef
im geting that the thing that listen to the port after tomcat is dead is this :
jdk/jdk1.4.1/bin/java -Djava.endorsed.di
what else can i do / check ?

thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not that this solves the real problem but if you're using mod_jk to intergrate with Apache HTTPD, you probably don't need the coyote connector (although it's sometimes useful to test things by hitting tomcat as a standalone).

Have you tried a thread dump to see what, exactly, is keeping the JVM from shutting down?
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok so yes i tryed to comment out in the server.xml the part where it says about cayota stuff , but then all the tomcat didnt served any servlet
or mybe i didnt canceld it as i need to , how can i cancle it?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you hitting your servlets, through Apache HTTPD via the connector or are you aiming your browser directly at tomcat via port 8080?

If the latter, why are you using mod_jk?

Another thought that I had..
When you shut down Tocmat, are you also shutting down Apache HTTPD?
If not, maybe the thread that listens for connector requests is keeping Tomcat from shutting down.

If you haven't already, try shutting both of them down and then run netstat.
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
well i start apache and then i start tomcat , i need apache , beacose
my application using some other file types and stuff , im shoting down
first the tomcat and then the apache .
is there any way to start tomcat from apache?
and still i have the 8080 bussy ....why ?
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic