OpenVZ Forum


Home » General » Support » Java(Sun) problem with kernel RHEL6 042stab055.10
Java(Sun) problem with kernel RHEL6 042stab055.10 [message #46668] Fri, 01 June 2012 12:20 Go to next message
yasuyuki is currently offline  yasuyuki
Messages: 11
Registered: February 2012
Junior Member
We found Java (which is downloaded from Sun(Oracle)) doese not run normaly in 32 bit CentOS 5 VE.
The kernel of HN is RHEL6 042stab055.10.
When we downgrade to RHEL6 042stab044.11, the Java runs normaly.
Using 62 bit CentOS template, we cannot observe java related problems.

We found some applications (tomcat, user created apps and so on) cannot run with this environment.

JVM Version:
# /usr/java/jdk1.6.0_31/bin/java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode)

Have you seen same problem? and know solutions?
If you have same environment, how about you?
Re: Java(Sun) problem with kernel RHEL6 042stab055.10 [message #46669 is a reply to message #46668] Fri, 01 June 2012 12:23 Go to previous messageGo to next message
yasuyuki is currently offline  yasuyuki
Messages: 11
Registered: February 2012
Junior Member
In addition, OpenJDK is fine.
Re: Java(Sun) problem with kernel RHEL6 042stab055.10 [message #46676 is a reply to message #46668] Mon, 04 June 2012 09:17 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi,

can you please describe in more details what do you mean under "java does not run normally", "other applications like ... cannot run".

Ideally - please post here a set of commands which can be executed in order to reproduce the problem and how this problem can be checked - if it exists or not.

Thank you.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Java(Sun) problem with kernel RHEL6 042stab055.10 [message #46678 is a reply to message #46668] Mon, 04 June 2012 12:28 Go to previous messageGo to next message
yasuyuki is currently offline  yasuyuki
Messages: 11
Registered: February 2012
Junior Member
Tomcat6 and Tomcat7 cannot work on new stable kernel(055.10) and JDK 1.6.0_20-b02.

But JDK 1.6.0_07-b06 and OpenJDK are fine.
And when I downgrade to kernel(044.11), JDK 1.6.0_20-b02 is fine.
Re: Java(Sun) problem with kernel RHEL6 042stab055.10 [message #46679 is a reply to message #46668] Mon, 04 June 2012 12:32 Go to previous messageGo to next message
yasuyuki is currently offline  yasuyuki
Messages: 11
Registered: February 2012
Junior Member
"not work normally" means I cannot open tomacat management page.
Re: Java(Sun) problem with kernel RHEL6 042stab055.10 [message #46682 is a reply to message #46679] Mon, 04 June 2012 13:53 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Please post here a set of commands which can be executed in order to reproduce the problem and how this problem can be checked - if it exists or not.

Step by step like:
1) get a fresh CentOS6.2 64bit node, install OpenVZ on it - kernel version, vzctl version
2) get a template from "link", vzctl create 100 --ostemplate <template_name>
3) assign an IP address - exact command
4) enter inside a CT - vzctl enter 100
5) install tomcat - how? you download it from a centos repo or someother repo? Again - exact command you issue to install tomcat.
6) any configuration you've done to tomcat
7) and how to open a tomcat page - using curl or what? What url do you use? What error message do you receive?


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Java(Sun) problem with kernel RHEL6 042stab055.10 [message #46901 is a reply to message #46682] Sat, 23 June 2012 09:10 Go to previous messageGo to next message
yasuyuki is currently offline  yasuyuki
Messages: 11
Registered: February 2012
Junior Member
It seems that OpenJDK may have same problem.

I've tested with several environments.
Now I can explain the exact reproduction steps.

1) get a fresh CentOS6.2 64bit node, install OpenVZ on it.
it is on KVM VM which has 2 cores cpu
kernel version: 2.6.32-042stab055.10
vzctl-3.2-1.x86_64

2) get a template from "link", vzctl create 100 --ostemplate centos-5-x86 --config ve-vasic.conf

3) add a line 'CPUS="1"' into 100.conf

4) enter inside a CT - vzctl enter 100

5) download java vm (jdk-6u31-linux-i586-rpm.bin ) and install it

6) javac MemoryCheck.java
MemoryCheck is a code to new object until throws OutOfMemoryError.
I attache this code.

7) while : ; do java MemoryCheck ; done

Cool stpe 7 should not be stopped. the process is finished with throwing exception and next process should be executed.
But after several hours, the process will be hung-up.
If you remove a line 'CPUS="1"' from container config file, this phenomenon is not appeared.


recently change some behaviors about this?
should I fill a bug on bugzilla?
Re: Java(Sun) problem with kernel RHEL6 042stab055.10 [message #47184 is a reply to message #46901] Tue, 17 July 2012 11:19 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Sorry for the delay.

Well, we found the reason of the problem: "--cpus 1" in fact currently does not make sure that processes from the CT run on exactly a single physical cpu, it only ensures that the total cpu power provided to the CT is not greater than the power of a single cpu =>

please just use "--cpulimit 100" instead of "--cpus 1"
or
use "--cpus 1" along with the "--cpumask=X" option.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Java(Sun) problem with kernel RHEL6 042stab055.10 [message #47201 is a reply to message #47184] Fri, 20 July 2012 14:57 Go to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
bug http://bugzilla.openvz.org/show_bug.cgi?id=2206

If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Previous Topic: OpenSuse 12.1 setup troubles
Next Topic: Bridge lost after reboot of VE
Goto Forum:
  


Current Time: Fri Dec 13 03:33:01 GMT 2024

Total time taken to generate the page: 0.02516 seconds