Invalid initial heap size:-Xms 512 m-Xmx 1024 m Could not create Java Virtual Machine

3304 ワード

残念ながら、その時のミスを簡単に説明するしかないです。
バッチファイルにjvmの初期メモリの最大/最小値を設定します。
1)まず、システムが設定できる最大メモリ値を判断します。
Start>Run>input'cmd'in[Run]dialog and click on'OK'
In command window、input the following command
java-Xmx 2046 m-version
セットJAVA_OPETS=-server-Xms 768 m-Xmx 768 m-XX:PermSize=128 M-XX:MaxNewSize=256 m-XX:MaxPermSize=256 m
注意ここでは、2046 mはシステムの制限を超えているという説明が提示されています。最大メモリ値を1640 mに縮小した場合、実行結果を確認し、システムの最大制限は1640 Mとなります。
2)バッチファイルにJAVA_を設定する。OPETS=-Xms 516 m-Xmx 1024 m後、実行時に以下のエラーが提示されます。
Invalid initial heap size:-Xms 512 m-Xmx 1024 m
Could not create Java Virtual Machine
bug_によると34029は、最大と最小のメモリ値をそれぞれ2つの変数に設定することを試みる。
セットJAVA_OTS_MAX=-Xmx 1024 m
セットJAVA_OTS_MIN=-Xms 512 m
成功しました。(reproduceでは、同じ変数に定義しても問題ないようです。原因は調べていません。)
Bug 34029-
Invalid initial heap size:-Xms 64 m-Xmx 512 m Could not create Java Virtual Machine
Sttus:
RESOLVED INVAILID
プロジェクト:
アント
Component:
Build Process
Version:
1.5
Platform:
Other other
Importance:
P 2 normal(vote)
Target Milestone:
を選択します
Asigned To:
Ant Notifications List
URL:
Keywors:
Dependowon:
ブロック:
Show dependencytree
レポート:
2005-03-16 08:08 UTC byRajadurai
Modified:
2008-02-22 12:18 UTC(History)
CC List:
0 users
Attachments
Add an atachment(proposed patch、testcase、etc.)
NoteYou need tolog inbefore you can comment on or make changes to this bug.
Description
Rajadurai
2005-03-16 08:08:48 UTC
i m using jdk1.5.0_01 if i user java.exe of jdk1.5.0_01 then i m getting the 
following error  Invalid initial heap size: -Xms64m -Xmx512m Could not create 
Java Virtual Machine. But if i run java.exe in the command prompt with the same 
jvm arguments. its not giving any problem. is this the bug in ant or i m doing 
any mistake. Following the target 

	
		+---------------------------------------------------
+
		|                                                   
|
		| G E N E R A T E   C U D S F   X M L               
|
		|                                                   
|
		+---------------------------------------------------
+
		Generating actions xml for ${ant.project.name}
		
		
			
			
			
			
			
			
				
				
				
			
		
		Generated actions xml for ${ant.project.name}
	
Commt 1
Jan Mat
2005-03-16 08:12 UTC
 gets only ONE value - maybe with spaces.

Use two  or a .

As the manual sais ...