Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get tomcat to run on RedHat 7.1?

Status
Not open for further replies.

tbaldarelli

Programmer
Nov 23, 2004
2
US
Hello,
I am trying to get tomcat to run on RedHat 7.1 and have had many problems. Let me list them out to help in the understanding:
1. I installed j2se 1.4.2 and seem to be having problems. See below:
[tonyb]> ./java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
[tonyb]>
[tonyb]> ./java -Xmx32 -version
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
[tonyb]>
2. I try to start tomcat via the startup.sh script, and get the following exception:
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.<init>(ThreadPo
ol.java:642)
at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:515
)
at org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:148)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.
java:284)

So, since threads seem to not be working, maybe I installed something wrong? Or maybe I need another shared library for RedHat 7.1.

Thanks for any help you can give.

Tony

 
Can you post the output from :

"cat /proc/meminfo" and "cat /proc/cpuinfo"

--------------------------------------------------
Free Database Connection Pooling Software
 
Ok, here it is:
[tonyb]> cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 526053376 494112768 31940608 0 18575360 403955712
Swap: 1052827648 84955136 967872512
MemTotal: 513724 kB
MemFree: 31192 kB
MemShared: 0 kB
Buffers: 18140 kB
Cached: 391360 kB
SwapCached: 3128 kB
Active: 332320 kB
ActiveAnon: 31720 kB
ActiveCache: 300600 kB
Inact_dirty: 7520 kB
Inact_laundry: 92044 kB
Inact_clean: 7052 kB
Inact_target: 87784 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 513724 kB
LowFree: 31192 kB
SwapTotal: 1028152 kB
SwapFree: 945188 kB
[tonyb]>

[tonyb]> cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz
stepping : 7
cpu MHz : 2391.207
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 4771.02

[tonyb]>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top