• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection refuse on tomcat

 
Niti Auekittiroj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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 ?
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • 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..
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic