• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Connection refuse on tomcat

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use tomcat 4.0.30 on linux redhat.
my problem is when I start tomcat by run startup.sh
I got the message "Connection refuse"
and can't start tomcat.

How can I solve this problem ?
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Niti Auekittiroj:
I use tomcat 4.0.30 on linux redhat.
my problem is when I start tomcat by run startup.sh
I got the message "Connection refuse"
and can't start tomcat.

How can I solve this problem ?




I think, this problem about tomcat or another server/programe use port's tomcat(8080) already.


please see process : ps -ef in command line..
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Niti Auekittiroj:
I use tomcat 4.0.30 on linux redhat.
my problem is when I start tomcat by run startup.sh
I got the message "Connection refuse"
and can't start tomcat.

How can I solve this problem ?



It's because there might be another application running on the port that Tomcat is going to use or maybe because some settings on the Tomcat configuration are not properly adjusted to the linux environment that you've got...

Could you provide the error messages in details so that we can see what's happening along the way, while you are starting the Tomcat?
 
Niti Auekittiroj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it's work now.
thank you very much to everyone.

the problem is in catalina.sh
someone edit
JAVA_OPTS="-Xms256m -Xmx1024m"
into catalina.sh

when I get this line out, tomcat is work.

but I don't know why.
do you know about meaning of this line ?
and why does it error with this line ?
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Niti Auekittiroj:
do you know about meaning of this line ?
and why does it error with this line ?



It's some kinda memory allocation for Tomcat... Each environment got its own memory allocation available for it. If you are still using the setting for Windows on Linux, it might raise an error...
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Niti Auekittiroj:
it's work now.
thank you very much to everyone.

the problem is in catalina.sh
someone edit
JAVA_OPTS="-Xms256m -Xmx1024m"
into catalina.sh

when I get this line out, tomcat is work.

but I don't know why.
do you know about meaning of this line ?
and why does it error with this line ?





-Xmsn
Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples:
-Xms6291456
-Xms6144k
-Xms6m


-Xmxn
Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples:
-Xmx83886080
-Xmx81920k
-Xmx80m
 
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
it could potentialy dangerous comment these line. I'm not sure how exactly JVM works on Linux, but I think if you do not setup the max heapsize than the memory could grow to infinity. Of course there is a garbage collector, but my experience is when the memory exceed the limit than it swap to the disk and the application is going to be very slow.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic