|
我这里服务器有时会出现cpu率占用过高的问题(具体现象是突然cpu占用率特别低,然后过了1秒后突然涨到70%以上)。如果出现后就会有下面两种类似日志,能帮忙分析原因或者是什么方向的问题引起的。直到cpu占用率下来才会停止报错。此问题困扰了我几个月时间了,希望给些思路找到问题所在。此问题出现会导致服务器卡顿,客户无法正常访问。
奇怪一:
各种action执行都会报0023错误,0023代表的是什么含义?
2018-04-27 08:58:24 [catalina-exec-325] [com.justep.business.server.BusinessServer] ERROR: excute stream action, params:{"accept":"application/json","action":"queryCUX_HR_TASK_TO_OA_V1Action","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"columns":"APPLY_DATETIME,APPLY_DEPT,APPLY_DEPTNAME,APPLY_PERSON,APPLY_PERSONNAME,AUDIT_DATETIME,AUDIT_DEPT,AUDIT_DEPTNAME,AUDIT_PERSON,AUDIT_PERSONNAME,CUX_HR_TASK_TO_OA_V1,TASK_ID,TASK_STATUS,TASK_TITLE,version","filter":"(CUX_HR_TASK_TO_OA_V1.AUDIT_PERSON = '0000032062' and CUX_HR_TASK_TO_OA_V1.TASK_STATUS = '未处理')","limit":20,"offset":0,"orderBy":"APPLY_DATETIME DESC","variables":{}},"process":"/jingbo/hrTask/process/hrPortal/hrPortalProcess","translateParameter":{"cellnameByRelation":false,"dataType":"row-list","includeState":true,"rowsConfig":{"concept":"CUX_HR_TASK_TO_OA_V1","sequence":"APPLY_DATETIME,APPLY_DEPT,APPLY_DEPTNAME,APPLY_PERSON,APPLY_PERSONNAME,AUDIT_DATETIME,AUDIT_DEPT,AUDIT_DEPTNAME,AUDIT_PERSON,AUDIT_PERSONNAME,CUX_HR_TASK_TO_OA_V1,TASK_ID,TASK_STATUS,TASK_TITLE,version"},"transformIdcolumn":true,"useNamespace":true}}
com.justep.exception.BusinessException: 编码: JUSTEP153034; 提示: 非法的错误编号"0023"
at com.justep.exception.BusinessException.create(Unknown Source)
at com.justep.util.Utils.check(Unknown Source)
at com.justep.exception.Message.getMessageByNumber(Unknown Source)
at com.justep.util.Utils.throwSystemException(Unknown Source)
at com.justep.system.action.Engine.invokeActions(Native Method)
at com.justep.system.action.Engine.invokeActions(Unknown Source)
at com.justep.business.server.BusinessServer.doAction(Unknown Source)
at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
at com.juste
2018-04-27 08:58:24 [catalina-exec-215] [com.justep.business.server.BusinessServer] ERROR: excute stream action, params:{"accept":"application/json","action":"queryJb_navigate_viewAction","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"columns":"is_my_system,is_single_login,jb_navigate_view,length,prefix,single_url,system_content,system_developer,system_id,system_maintainor,system_name,system_order,system_url,system_user,usercard,version","filter":"(usercard = '0000033438')","limit":-1,"offset":0,"orderBy":"system_order ASC","variables":{}},"process":"/jingbo/navigation/process/navigateView/navigateViewProcess","translateParameter":{"cellnameByRelation":false,"dataType":"row-list","includeState":true,"rowsConfig":{"concept":"jb_navigate_view","sequence":"is_my_system,is_single_login,jb_navigate_view,length,prefix,single_url,system_content,system_developer,system_id,system_maintainor,system_name,system_order,system_url,system_user,usercard,version"},"transformIdcolumn":true,"useNamespace":true}}
com.justep.exception.BusinessException: 编码: JUSTEP153034; 提示: 非法的错误编号"0023"
at com.justep.exception.BusinessException.create(Unknown Source)
at com.justep.util.Utils.check(Unknown Source)
at com.justep.exception.Message.getMessageByNumber(Unknown Source)
at com.justep.util.Utils.throwSystemException(Unknown Source)
at com.justep.system.action.Engine.invokeActions(Native Method)
等等
奇怪二:
用的ntlogin登录,但是会报用户名密码错误。
Caused by: com.justep.exception.BusinessException: Invalid name or password!
at com.justep.util.Utils.check(Unknown Source)
at com.justep.system.opm.OrgUtils.login(Native Method)
at com.justep.system.opm.OrgUtils.login1(Unknown Source)
at OPMProcedure.login(OPMProcedure.java:145)
at OPMProcedure.ntLogin(OPMProcedure.java:125)
... 28 more
相关代码是:
Action action = new Action(); action.setProcess("/SA/OPM/system/systemProcess"); action.setActivity("mainActivity"); action.setName("ntLoginAction"); action.setParameter("name", username); action.setParameter("loginDate", new java.sql.Date(System.currentTimeMillis())); action.setParameter("ip", "127.0.0.1"); action.setParameter("options", new HashMap<String, Object>()); action.setParameter("lang", language); try { ActionResult ar = ActionEngine.invokeActions(bussinessServer + "/login3", null, action.asXML().getBytes("UTF-8"), null, ActionUtils.XML_CONTENT_TYPE, ActionUtils.XML_CONTENT_TYPE, null, language, "post", null); if (ar.isSuccess()){ // System.out.println("bsessionid===="+ar.getBSessionID()); return ar.getBSessionID(); }else{ throw new RuntimeException(ar.getMessage()); } } catch (Exception e) { e.printStackTrace(); throw new RuntimeException(e.getMessage()+"", e); } 以上日志前后我都仔细检查了,没有什么异常。
|
|