问题描述
当我从后端服务 (Java) 与 kuzzle 建立连接套接字连接时,CPU 使用率飙升至 100% 并几乎保持在那里。 web socket连接正常吗?
Java 后端服务 CPU 使用率飙升,kuzzle 保持正常。
这就是我创建 kuzzle 客户端的方式:
WebSocketOptions opts = new WebSocketOptions();
opts.setPort(443);
opts.setSsl(true);
opts.setAutoReconnect(true);
opts.setConnectionTimeout(42000);
WebSocket ws = new WebSocket(host,opts);
KuzzleOptions kuzzleOptions = new KuzzleOptions();
// Instantiates a Kuzzle client
kuzzle = new Kuzzle(ws,kuzzleOptions);
// Connects to the server.
kuzzle.connect();
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)