Preloading java classes/libraries at jar startup?

后端 未结 3 837
刺人心
刺人心 2020-11-29 12:09

A time-out occurs during the first RPC call to a server yet subsequest requests succeed. The server times-out on the response because upon first call it loads the libraries

3条回答
  •  醉话见心
    2020-11-29 13:14

    I suggest faking a connection just before opening up the server. That will ensure that (most) relevant lazy initialisation will have been performed.

提交回复
热议问题