-
15. Re: Load Library problem
peterj Jul 17, 2008 3:02 PM (in response to tgcosta)And is it now running?
-
16. Re: Load Library problem
tgcosta Jul 17, 2008 3:14 PM (in response to tgcosta)No...
Can i send email for you with more details? I will printscreen the terminal and this can be better for you analyse what's wrong.
Can you pass your email address?
Thiago. -
17. Re: Load Library problem
peterj Jul 17, 2008 3:57 PM (in response to tgcosta)How are you starting the app server? Are you trying to run it on os startup using a script in /etc/init.d? Or are your running it manually from a terminal.
If you are running it manually from a terminal, at the terminal, enter this:
echo $JAVA_HOME
If you do this, you should see:
/usr/java/jdk1.5.0_16
If you do not, then JAVA_HOME is not set properly.
Based on the starting part of the console log you posted:tgcosta wrote:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/jboss/jboss-4.2.2.GA
JAVA: java
JAVA_HOME is not set properly. You should instead see:tgcosta wrote:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/jboss/jboss-4.2.2.GA
JAVA: /usr/java/jdk1.5.0_16/bin/java -
18. Re: Load Library problem
tgcosta Jul 17, 2008 4:40 PM (in response to tgcosta)Peter
During all these tests, i was login with my user (no root but with the same permission) and for a test i try to run the JBoss like a root user.
I didn't found any problem.
Certainly the problem is with permissions of my user.
The first problem is solve.
Now, i have other question:
How can i set the heap size? Minimum and Maximum memory for the Virtual Machine...
Oh my...
Thanks.
Thiago. -
19. Re: Load Library problem
peterj Jul 17, 2008 6:50 PM (in response to tgcosta)Edit the setting that are already present in run.conf:
JAVA_OPTS="-Xms128m -Xmx512m ..." -
20. Re: Load Library problem
tgcosta Jul 18, 2008 2:52 PM (in response to tgcosta)Hey Peter
I tried to edit the run.conf file for setting the memory for Virtual Machine and edit the option that you told me. But when i started JBoss this message appear:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/jboss/jboss-4.2.2.GA
JAVA: /usr/java/jdk1.5.0_16/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
CLASSPATH: /usr/jboss/jboss-4.2.2.GA/bin/run.jar:/usr/java/jdk1.5.0_16/lib/tools.jar
=========================================================================
is it correct? I don't think so...
Could you help-me?
Thiago. -
21. Re: Load Library problem
peterj Jul 18, 2008 2:58 PM (in response to tgcosta)Are you running a 32-bit or 64-bit JVM? If 32-bit, the max heap size might be too big (depends on the OS). Some OSes will allow only 1.5-1.7GB heaps.
Also, are you sure you need that much heap space? I have a presentation on how to understand what heap settings work best at: http://www.cecmg.de/doc/tagung_2007/agenda07/24-mai/2b3-peter-johnson/index.html -
22. Re: Load Library problem
tgcosta Jul 18, 2008 3:10 PM (in response to tgcosta)Peter
I just wanna test if JDK (x64) and JBoss works well in a x64 system. Because this i would like to set a big memory...
But this message "JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true" appeared before edit the file.
I'm running a 64 bit JVM. -
23. Re: Load Library problem
peterj Jul 18, 2008 3:20 PM (in response to tgcosta)I guess I do not understand what you are asking.
Is there a problem when you run with those settings?
Or are you asking me to approve those settings? If so, see the presentation I provided a link to.
Also, you must have already edited the run.conf file - the original Xmx size is 512m
In general, never set Xmx larger than your RAM size. And never set it larger than what you really need (see my presentation to answer that). -
24. Re: Load Library problem
sushtech Jul 21, 2008 12:44 AM (in response to tgcosta)Hi,
I am facing exactly the same issue. When I move to a 32 bit JVM it works. But due to some special requirements I cannot use the 32 bit JVM in my production environment.
I am using the JBossService.exe to create the windows service. Is there a different JBossService.exe for x64 bit systems.
Thanks in advance
-Sudhanshu -
25. Re: Load Library problem
peterj Jul 21, 2008 11:19 AM (in response to tgcosta)Don't use JavaService if is only supports 32-bit. Use JBoss Native instead - it has a 64-bit version and I have used it on my system (64-bit Vista).