摘要: 第一种:Map map = new HashMap();Iterator iter = map.entrySet().iterator();while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); Object key =... 阅读全文
posted @ 2015-07-06 21:22 dragoonrl 阅读(123) 评论(0) 推荐(0)
摘要: 以部署在linux系统/opt/Server目录下的Server.jar为例1.在run.sh启动脚本中添加jvm参数:-XX:OnOutOfMemoryError=/opt/Server/restart.sh2.restart.sh脚本linux环境:#!/bin/bashpid=$(ps -ef... 阅读全文
posted @ 2015-07-06 21:19 dragoonrl 阅读(2303) 评论(0) 推荐(0)