undertow更换后eureka只显示一个按钮

由于配置过大导致

undertow:

io-threads:4

    worker-threads:8

#    buffer-size: 1024

    direct-buffers:true


private Builder() {

    ioThreads = Math.max(Runtime.getRuntime().availableProcessors(), 2);

    workerThreads = ioThreads * 8;

    long maxMemory = Runtime.getRuntime().maxMemory();

    //smaller than 64mb of ram we use 512b buffers

    if (maxMemory < 64 * 1024 * 1024) {

        //use 512b buffers

        directBuffers = false;

        bufferSize = 512;

    } else if (maxMemory < 128 * 1024 * 1024) {

        //use 1k buffers

        directBuffers = true;

        bufferSize = 1024;

    } else {

        //use 16k buffers for best performance

        //as 16k is generally the max amount of data that can be sent in a single write() call

        directBuffers = true;

        bufferSize = 1024 * 16 - 20; //the 20 is to allow some space for protocol headers, see UNDERTOW-1209

    }

}


把参数改小即可

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容