【发布时间】:2016-01-22 14:55:27
【问题描述】:
我的程序在 Eclipse 中运行,所有进程都将在一个线程中完成。将其部署到客户端机器时遇到问题(我不确定机器的配置)。
线程在处理过程中突然从btpool0-1变为`btpool0-7。我确定我没有在编码中创建任何线程。
我想知道这种行为有什么原因吗??
提前致谢!!
=======在这里登录======================================= ===============
2016-01-20 12:03:58.784 [btpool0-1] 信息 hk.com.xx.sys.service.impl.BargeVoyageServiceImpl - 结束提交请求 到 nSys 在 saveAndSynchronize
2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.persistence.TransactionCoordinator - 之前刷新 在线程 2055564603 中提交事务 id 1656368712
2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.persistence.DefaultEntityManager - 运行刷新 线程中自定义框架管理器 1801910956 的委托 481556314 会话中的 2055564603 事务中的 1798587502 上下文中的 2028663310 880330942 2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.ro.security.remote.RemotecustomFrameworkManager - 运行 为 customFramework 管理器 146387751 的委托 1470155242 刷新 会话 2099793559 中的线程 2055564603 事务 1484449171 中 上下文 1631574962
2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.persistence.TransactionCoordinator - 提交 线程 2055564603 中的事务 id 1656368712
2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.persistence.DefaultcustomFrameworkManager - 已提交 customFramework 管理器的委托 481556314 的事务 线程中的 1801910956 会话中的 2055564603 事务中的 1798587502 2028663310 在上下文 880330942
2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.persistence.DefaultcustomFrameworkManager - 已关闭 线程中为 customFramework manager 1801910956 委托 481556314 2055564603 在会话 1798587502
2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.ro.security.remote.RemotecustomFrameworkManager - customFramework 的委托 1470155242 的已提交事务 经理 146387751 在线程 2055564603 在会话 2099793559 在 上下文 1631574962 中的事务 1484449171
2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.ro.security.remote.RemotecustomFrameworkManager - 自定义框架管理器 146387751 的已关闭委托 1470155242 会话 2099793559 中的线程 2055564603
2016-01-20 12:03:58.877 [btpool0-1] 调试 customFramework.persistence.TransactionCoordinator - 提交 线程 2055564603 中的事务结束 id 1656368712
2016-01-20 12:03:58.877 [btpool0-1] 信息性能 - hk.com.xx.sys.service.BargeVoyageService 方法 saveAndSynchronizeForPeakMode - 经过的时间是 687 毫秒。
2016-01-20 12:03:59.190 [btpool0-1] 调试 HK.com.xx.ro.security.ThreadSecurityContext - stack.size() = 1;指数 = 0
2016-01-20 12:03:59.252 [btpool0-7] 信息 customFramework.service.http.HttpServiceHandlerFactory - 调用 服务 hk.com.xx.sys.service.BargeVoyageService 方法 savePeakBargeVoyageInBatch
2016-01-20 12:03:59.252 [btpool0-7] 调试 customFramework.service.http.HttpServiceHandlerFactory - 服务 对象 =
2016-01-20 12:03:59.252 [btpool0-7] 调试 customFramework.service.ServiceInterceptorFactory - 调用方法 savePeakBargeVoyageInBatch 与事务属性 = REQUIRED
2016-01-20 12:03:59.252 [btpool0-7] 调试 customFramework.persistence.TransactionCoordinator - 执行 交易属性 = REQUIRED
2016-01-20 12:03:59.252 [btpool0-7] 调试 customFramework.persistence.TransactionCoordinator - 开始交易 id 1656368712 在线程 1377751019
2016-01-20 12:03:59.252 [btpool0-7] 调试 customFramework.persistence.DefaultcustomFrameworkManager - 创建 线程中自定义框架管理器 1801910956 的委托 1334851109 1377751019 会话 80928754 上下文 812419927
【问题讨论】:
标签: java multithreading hibernate