Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/thinkgem/jeesite
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Dec 31, 2016
2 parents cfb80fd + da5ce3c commit 604d091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public Class<?> getSessionType() {
}

public Session openSession() {
// 返回自定义的GroupEntityManager实例
// 返回自定义的UserEntityManager实例
return actUserEntityService;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public void afterCompletion(HttpServletRequest request, HttpServletResponse resp
new SimpleDateFormat("hh:mm:ss.SSS").format(endTime), DateUtils.formatDateTime(endTime - beginTime),
request.getRequestURI(), Runtime.getRuntime().maxMemory()/1024/1024, Runtime.getRuntime().totalMemory()/1024/1024, Runtime.getRuntime().freeMemory()/1024/1024,
(Runtime.getRuntime().maxMemory()-Runtime.getRuntime().totalMemory()+Runtime.getRuntime().freeMemory())/1024/1024);
//删除线程变量中的数据,防止内存泄漏
startTimeThreadLocal.remove();
}

}
Expand Down

0 comments on commit 604d091

Please sign in to comment.