1

I'm currently using YAJSW to wrap a java application that I've developed. For some reason I see it is creating two java.exe processes (I see it in the windoes task manager : 1 : "C:\Program Files\Java\jdk1.7.0_72\bin\java.exe" "-classpath" "D:\yajsw-stable-11.04\wrapper.jar" 2: "C:\Program Files\Java\jdk1.7.0_72\bin\java.exe" -classpath /D:/yajsw-stable-11.04/./wrapperApp.jar) . When I start the application not as a service - only one java.exe process is being created. meybe the problem is in the use of wrapper.working.dir . this property point to my application binary . is it ok ? Any idea why is this ?

4

1 回答 1

1

当使用 YAJSW 将进程作为服务启动时,这是正常的。当服务启动时,它首先启动一个内存占用较低的进程,即 YAJSW 包装进程,用于监控您的应用程序进程。然后,它派生出另一个进程,即您的实际程序。您会注意到,当您关闭服务时,两者都会正常终止。最后,您可以通过使用的物理内存量或通过在 YAJSW 配置中设置 processID 来告诉您的进程。

于 2016-04-24T15:32:19.213 回答