Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by PCui
at 2024-07-20 20:38:28
Point:500 Replies:17 POST_ID:829045USER_ID:11949
Topic:
Java Programming Language;Microsoft Server;Windows Server 2008
Hi all,
Recently i have tried to upgrade the server jdk from 6(32bit) to 7 (32bit), everything looks good until i change it to JDk7 and it give the below error when i run the application,although it is on 32bit java, but i have no idea why as JDK6 is working perfectly but Jdk 7 cannot. I have tried -Xmx500m able to run but our apps need more memory than that. and not able to upgrade to 64bit windows as there are too many parties and application in the server
Recently i have tried to upgrade the server jdk from 6(32bit) to 7 (32bit), everything looks good until i change it to JDk7 and it give the below error when i run the application,although it is on 32bit java, but i have no idea why as JDK6 is working perfectly but Jdk 7 cannot. I have tried -Xmx500m able to run but our apps need more memory than that. and not able to upgrade to 64bit windows as there are too many parties and application in the server
Error occurred during initialization of VMCould not reserve enough space for object heapError: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Program will exit. 1:2:3:4:
set JAVA_HOME=C:Program FilesJavajdk1.7.0_45REM set JAVA_HOME=C:Program FilesJavajdk1.6.0_20"%JAVA_HOME%injava.exe" -Xms500m -Xmx1500m com.try.jdk7.Main >"C:Logssys.out 2>"&"1 1:2:3:4:
Expert: CEHJ replied at 2024-07-22 01:05:51
So, you have 32 bit Windows installed on a 64 bit machine?
But the two lines of code that follow that show you doing the opposite ...
The strange thing is when i set the JAVA_HOME back to C:Program FilesJavajdk1.6.0_20, everything is normal
But the two lines of code that follow that show you doing the opposite ...
Author: PCui replied at 2024-07-21 20:17:50
it is a 32 bit windows so it is installed in the program file and it should be 32 bit java.
No upgrade for the server.
The strange thing is when i set the JAVA_HOME back to C:Program FilesJavajdk1.6.0_20, everything is normal
set JAVA_HOME=C:Program FilesJavajdk1.7.0_45
REM set JAVA_HOME=C:Program FilesJavajdk1.6.0_20
"%JAVA_HOME%injava.exe" -Xms500m -Xmx1500m com.try.jdk7.Main >C:Logssys.out 2>&1
No upgrade for the server.
The strange thing is when i set the JAVA_HOME back to C:Program FilesJavajdk1.6.0_20, everything is normal
set JAVA_HOME=C:Program FilesJavajdk1.7.0_45
REM set JAVA_HOME=C:Program FilesJavajdk1.6.0_20
"%JAVA_HOME%injava.exe" -Xms500m -Xmx1500m com.try.jdk7.Main >C:Logssys.out 2>&1
Expert: Peter Hutchison replied at 2024-07-21 04:00:10
Where was the JDK6 installed?
If installed in C:Program filesJavajdk6 then it will be the 64 bit edition
If installed in C:Program files (x86)Javajdk6 then it will be the 32 bit edition
If installed in C:Program filesJavajdk6 then it will be the 64 bit edition
If installed in C:Program files (x86)Javajdk6 then it will be the 32 bit edition
Expert: CEHJ replied at 2024-07-21 03:20:11
Has there been any kind of hardware upgrade on that box?
Expert: duncanb7 replied at 2024-07-21 02:41:27
If so, why it worked before for JDK6 ?
Duncan
Duncan
Expert: CEHJ replied at 2024-07-21 02:30:04
yes it is a 64 bit processor
That's probably your problem then. You should be using a 64 bit jvm, not a 32 bit one
Author: PCui replied at 2024-07-21 02:11:52
yes it is a 64 bit processor
Author: PCui replied at 2024-07-21 02:11:19
They system upgrade will be a bit troublesome as need few teams to be agree to upgrade. but Jdk7 is company standard that we need to upgrade in the week.
Anyway just would like to see anyone know why there is such difference
Anyway just would like to see anyone know why there is such difference
Expert: CEHJ replied at 2024-07-21 02:11:14
The server is run on Xeon and 32G ram, but legacy problem the server is install with windows server 2008 32bit, so only 32bit jdk can be installed
But that doesn't answer the question i asked ...
Expert: duncanb7 replied at 2024-07-21 01:59:24
Why not install back to jdk6 until your system is upgraded ?
Duncan
Duncan
Author: PCui replied at 2024-07-21 01:57:31
Thanks. I also think it should be related to heap limit, 1.5K and 3K max heap size are also not working.
the maximum i can set is 1.2K in jdk7 32 bit but Jdk 6 can set at 1.5K.
I dont know why there is such difference as same code and same config.
The server is run on Xeon and 32G ram, but legacy problem the server is install with windows server 2008 32bit, so only 32bit jdk can be installed
the maximum i can set is 1.2K in jdk7 32 bit but Jdk 6 can set at 1.5K.
I dont know why there is such difference as same code and same config.
The server is run on Xeon and 32G ram, but legacy problem the server is install with windows server 2008 32bit, so only 32bit jdk can be installed
Expert: CEHJ replied at 2024-07-21 01:49:43
and not able to upgrade to 64bit windows as there are too many parties and application in the server
I don't quite understand that. IS the server running on a 64 bit processor?
Expert: Peter Hutchison replied at 2024-07-21 01:01:16
Update:
java.exe myapp.class -Xms 1200 -Xmx 2000
java.exe myapp.class -Xms 1200 -Xmx 2000
Expert: Peter Hutchison replied at 2024-07-21 01:00:27
To see options for Heap settings for Java use Java.exe -X. For example to run an app with increased maxed heap size:
java.exe myapp.class -Xms 2000
java.exe myapp.class -Xms 2000
Expert: duncanb7 replied at 2024-07-21 00:39:04
Author: PCui replied at 2024-07-21 00:37:17
hi Duncan,
Thanks, do u have the instruction link to fix it?
Thanks
Kelvin
Thanks, do u have the instruction link to fix it?
Thanks
Kelvin
Expert: duncanb7 replied at 2024-07-20 23:21:05
There is similar issus reported from Orcale, the main reason you care using 32-bit jdk
try to follow insturction 's first post question reply to fix it.
Or you can try to set the maximum heap size from -Xmx1500m to -Xmx3000m
Hope understand your question completely.If not, please pt it out
Duncan
try to follow insturction 's first post question reply to fix it.
Or you can try to set the maximum heap size from -Xmx1500m to -Xmx3000m
Hope understand your question completely.If not, please pt it out
Duncan