fxxkgw
V2EX  ›  Java

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

  •  
  •   fxxkgw · Jul 19, 2019 · 2717 views
    This topic created in 2497 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   ·   2662 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:32 · PVG 23:32 · LAX 08:32 · JFK 11:32
    ♥ Do have faith in what you're doing.