JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Application Server » Tomcat  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
話題被移動
該話題已被移動 - tzutolin , 2006-06-30 08:03
如果您尚不清楚該話題被移動的原因,請參考論壇規則以及本版公告或者聯系本版版主。
本主題所含的標籤
無標籤
作者 请教高手:Tomact内存设置1.5G不能启动
langke





發文: 31
積分: 0
於 2006-06-29 09:14 user profilesend a private message to usersend email to langkereply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
请教高手:
为什么我把Tomcat的内存大小值设成1.5G的时候,Tomcat就不能启动了?
我机器内存是3G
catalina.sh设置是:
JAVA_OPTS=”-Xms512m -Xmx1500m”


reply to postreply to post
网络倡导的是平等、自由、公开的原则
作者 Re:请教高手:Tomact内存设置1.5G不能启动 [Re:langke]
deathgod





發文: 57
積分: 0
於 2006-07-01 09:31 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
改写 JAVA_OPTS=”-Xms512m -Xmx1000m”
我记得最大支持是1G。


reply to postreply to post
作者 Re:请教高手:Tomact内存设置1.5G不能启动 [Re:langke]
langke





發文: 31
積分: 0
於 2006-07-08 13:44 user profilesend a private message to usersend email to langkereply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
呵呵,找了一些资料,原来Tomcat最大内存支持跟JVM版本及操作系统都有关系,在命令行下用 java -XmxXXXXM -version 命令来进行测试,然后逐渐的增大XXXX的值,如果执行正常就表示指定的内存大小可用,否则会打印错误信息;
C:\Documents and Settings\lizz>java -Xmx1400m -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)

C:\Documents and Settings\lizz>java -Xmx1500m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
这表示在XP下JDK1.5最大支持者内存可达到1400m
Linux支持就更大了用AS4测试有2600M


reply to postreply to post
网络倡导的是平等、自由、公开的原则
作者 Re:请教高手:Tomact内存设置1.5G不能启动 [Re:langke]
Seiko





發文: 6
積分: 0
於 2006-09-15 10:41 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問各位大大:
還有其它方法可以將JVM的記憶體設的更大嗎?,
1.4.2_10的JVM版本只能設定到1240M

機器上的4G記憶體扣一扣還有大概2G空在那....>"<


reply to postreply to post
作者 Re:请教高手:Tomact内存设置1.5G不能启动 [Re:langke]
langke





發文: 31
積分: 0
於 2006-09-19 12:27 user profilesend a private message to usersend email to langkereply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
用IBM的JDK好像可以支持更大的内存噢!

reply to postreply to post
网络倡导的是平等、自由、公开的原则
» JWorld@TW »  Application Server » Tomcat

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8