如何更改JRun会话超时?

时间:2021-09-12 18:29:37

If you try to launch a JRun server and initialization takes more than 30 secs, the launch fails. Is there any way to increase this 30 second limit?

如果您尝试启动JRun服务器并且初始化时间超过30秒,则启动失败。有没有办法增加这30秒的限制?

1 个解决方案

#1


Assuming you are running JRun under Windows, you can tune how long the Windows Service manager will wait. See How to debug Windows services and search that page for "30 seconds". Immediately below that you'll see a registry key you can edit.

假设您在Windows下运行JRun,您可以调整Windows服务管理器等待的时间。请参阅如何调试Windows服务并搜索该页面“30秒”。紧接着,您将看到可以编辑的注册表项。

Basically, you'll be adding creating a new DWORD key:

基本上,您将添加创建新的DWORD键:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServicesPipeTimeout 

the value of this key will be the number of milliseconds in which services should start. This is a global setting, not just for the JRun service.

此键的值将是服务应该开始的毫秒数。这是一个全局设置,不仅仅是JRun服务。

#1


Assuming you are running JRun under Windows, you can tune how long the Windows Service manager will wait. See How to debug Windows services and search that page for "30 seconds". Immediately below that you'll see a registry key you can edit.

假设您在Windows下运行JRun,您可以调整Windows服务管理器等待的时间。请参阅如何调试Windows服务并搜索该页面“30秒”。紧接着,您将看到可以编辑的注册表项。

Basically, you'll be adding creating a new DWORD key:

基本上,您将添加创建新的DWORD键:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServicesPipeTimeout 

the value of this key will be the number of milliseconds in which services should start. This is a global setting, not just for the JRun service.

此键的值将是服务应该开始的毫秒数。这是一个全局设置,不仅仅是JRun服务。