[Installation, Configuration & DEPLOYMENT] - Re: JAVA_HOME is not set. Unexpected results may occur.? JB
by gan.gary
"Subemontes" wrote : Well, I think, but I'm not sure, that Server dll and Server Java are only included in SDK installs.
|
| Maybe that's the problem ?
|
| Btw, edit the .bat and put an
| echo JAVA_HOME: %JAVA_JOME%
| echo JRE_HOME: %JRE_HOME% (or something like that)
I put this in run.bat:
:FOUND_RUN_JAR
|
| echo JAVA_HOME0 %JAVA_HOME%
| if not "%JAVA_HOME%" == "" goto ADD_TOOLS
|
| set JAVA=java
|
| echo JAVA_HOME is not set. Unexpected results may occur.
| echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
| goto SKIP_TOOLS
|
| :ADD_TOOLS
|
|
| set JAVA=%JAVA_HOME%\bin\java
|
| echo JAVA_HOME1 %JAVA_HOME%
I get this in normal mode:
anonymous wrote : JAVA_HOME0 C:\Program Files\Java\jdk1.5.0_15
| JAVA_HOME1 C:\Program Files\Java\jdk1.5.0_15
but I get:
anonymous wrote : Starting JBoss Application Server 5.0 [2008-07-24 17:29:14]
| JAVA_HOME0
| JAVA_HOME is not set. Unexpected results may occur.
| Set JAVA_HOME to the directory of your local JDK to avoid this message.
when run as windows service mode
anonymous wrote : It must point to JRE or JDK install folder.
|
| I recomend JDK cos the utilities. and in Servers productions u can no to installa JAVA jre (per examle)
I do not get what you meant. Cna explain?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166535#4166535
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166535
17 years, 9 months
[Performance Tuning] - Re: Trying to increase performance, doesn't seem to be CPU o
by PeterJ
jamicide, are you sure you need 3GB of heap? Graphing the results should help you determine that. No sense using more memory that what you need.
tsmets, I wrote a simple Java app that uses a regular expression to gather the verbose:gc data and convert it to a CSV file. I then read the CSV file into a spreadsheet app (Excel or OpenOffice.org Calc) and use its graphing features to chart the results.
Here is my Java app:
import java.io.*;
| import java.util.regex.*;
| public class Analyzer {
| public static void main(String[] args) throws Exception {
| InputStream fin = new FileInputStream(args[0]);
| int iSize = fin.available();
| byte mvIn[] = new byte[iSize];
| fin.read(mvIn, 0, iSize);
| fin.close();
| String strText = new String(mvIn);
| PrintStream fout = new PrintStream
| (new FileOutputStream(args[0] + ".csv"));
| fout.println("Before,After,Seconds");
| Pattern p = Pattern.compile
| ("\\[(?:Full |)GC (\\d*)K->(\\d*)K\\(\\d*K\\), ([\\d.]*) secs\\]");
| Matcher m = p.matcher(strText);
| while (m.find())
| fout.println(m.group(1) + "," + m.group(2) + "," + m.group(3));
| fout.close();
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166528#4166528
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166528
17 years, 9 months