V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fxxkgw
V2EX  ›  Java

JVM 初始化失败但 tomcat 的 catalina.sh 依旧返回 0

  •  
  •   fxxkgw · May 22, 2020 · 1137 views
    This topic created in 2170 days ago, the information mentioned may be changed or developed.

    碰到一个奇怪的问题:
    给 Xms 和 Xmx 赋值时,XMS>XMX,启动时会报错:
    Error occurred during initialization of VM
    Incompatible minimum and maximum heap sizes specified

    但是这时 tomcat 的 catalina.sh 依旧返回 0,也会生成 pid 文件,只是进程没起来 /或者起来后又挂了

    问题 1:为什么 JVM 初始化失败了,catalina.sh 依旧返回 0 让人以为没问题

    问题 2:如何修改呢?

    tomcat6.0.33

    jdk1.8.0_60

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   794 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:43 · PVG 05:43 · LAX 14:43 · JFK 17:43
    ♥ Do have faith in what you're doing.