国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

java服務(wù)器出現(xiàn)broken pipe ,connection reset解決方法

2019-11-17 04:00:17
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
近期用java寫的email服務(wù)器經(jīng)常出現(xiàn) broken pipe 錯(cuò)誤。 經(jīng)查驗(yàn)

有可能是linux的線程機(jī)制會(huì)產(chǎn)生JVM出錯(cuò)的問題,特別是在連接高峰期間經(jīng)常出現(xiàn)這樣的問題,tomcat在linux下也出現(xiàn)類似情況。
  解決辦法是在環(huán)境變量中設(shè)置: _JAVA_SR_SIGNUM = 12 基本就可以解決。

在WIN環(huán)境變量中設(shè)置: _JAVA_SR_SIGNUM =12, 若Linux下用 export _JAVA_SR_SIGNUM =12, 基本就可以解決.
  sun的解釋:
  --posted by: cooper
  Below is a clipping from Sun on working around JVM crashes under high
  thread counts in the JVM 1.3 for Linux
  On Linux, use a larger signal number for hotspot thread
  suspension/resumption handler. The signal number being used is
  specified by environment variable _JAVA_SR_SIGNUM. Setting it to a
  number larger than SIGSEGV (11) will solve the PRoblem. A good number
  to use is 12, which is SIGUSR2. Using signal 16 to work around the
  problem might have potential problems. So on tcsh, "setenv
  _JAVA_SR_SIGNUM 12" can solve the problem.
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 汉川市| 麻城市| 龙江县| 灵石县| 特克斯县| 深州市| 大理市| 甘肃省| 尼勒克县| 仁化县| 军事| 门源| 民和| 辉南县| 鄂伦春自治旗| 滦平县| 绥芬河市| 新绛县| 阜阳市| 报价| 长治市| 四会市| 洛扎县| 襄垣县| 霍州市| 时尚| 横山县| 延安市| 定边县| 荆州市| 孟津县| 承德市| 荥阳市| 鄂伦春自治旗| 闵行区| 壤塘县| 日土县| 张掖市| 新宾| 错那县| 长岛县|