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

tomcat 单机多实例的好处有哪些呢?

  •  
  •   fxxkgw · Jul 19, 2019 · 2664 views
    This topic created in 2475 days ago, the information mentioned may be changed or developed.

    假设 8G 内存的虚机 2 台

    1,每台机器起 2 个进程,Xmx=1024M (假设),配不同端口,本机起 nginx 做负载

    2,每台机器起一个进程,Xmx=2048M(同假设) ,无需 nginx 做负载

    从资源利用率,性能,GC 等方面来说,方法 1 的优势明显么?

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