Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new daemon is always started with OpenJDK 8 #266

Closed
LeBezout opened this issue Dec 15, 2020 · 3 comments · Fixed by #267
Closed

A new daemon is always started with OpenJDK 8 #266

LeBezout opened this issue Dec 15, 2020 · 3 comments · Fixed by #267
Milestone

Comments

@LeBezout
Copy link

Hi,

Is there a known issue with Java versions lower than 11 ?

With Open JDK 8 I always obtain the following message :

$mvnd --version
Starting new daemon, X incompatible and Y stopped daemons could not be reused, ...

This furtive message doesn't appear with open JDK 11.

Reproduced on Windows 10 (mvnd-0.1.1-windows-amd64) & Linux Centos 7 or Ubuntu 20.04 (mvnd-0.1.1-linux-amd64).

First lines of log in Centos 7 :

11:51:38.662 D Initializing daemon with properties:
     mvnd.noDaemon=false
     mvnd.debug=false
     mvnd.idleTimeout=3h
     mvnd.keepAlive=100ms
     mvnd.extClasspath=
     mvnd.coreExtensions=
     mvnd.minHeapSize=128M
     mvnd.maxHeapSize=2G
     mvnd.jvmArgs=
     mvnd.enableAssertions=false
     mvnd.expirationCheckDelay=10s
     mvnd.duplicateDaemonGracePeriod=10s

11:51:38.667 I Daemon started
11:51:38.669 D daemon is running. Sleeping until state changes.
11:51:38.694 I Client connected
11:51:38.698 I Waiting for request
11:51:38.702 I Request received: [...]

in Windows 10 :

09:45:34.813 W Unable to ignore INT and TSTP signals
java.lang.IllegalArgumentException: Unknown signal: TSTP
	at java.base/jdk.internal.misc.Signal.<init>(Signal.java:148)
	at jdk.unsupported/sun.misc.Signal.<init>(Signal.java:139)
	at org.mvndaemon.mvnd.daemon.Server.<init>(Server.java:105)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.mvndaemon.mvnd.common.MavenDaemon.main(MavenDaemon.java:75)
09:45:35.906 D Initializing daemon with properties:
     mvnd.noDaemon=false
     mvnd.debug=false
     mvnd.idleTimeout=3h
     mvnd.keepAlive=100ms
     mvnd.extClasspath=
     mvnd.coreExtensions=
     mvnd.minHeapSize=128M
     mvnd.maxHeapSize=2G
     mvnd.jvmArgs=
     mvnd.enableAssertions=false
     mvnd.expirationCheckDelay=10s
     mvnd.duplicateDaemonGracePeriod=10s

09:45:35.914 I Daemon started
09:45:35.915 D daemon is running. Sleeping until state changes.
09:45:36.018 I Client connected
09:45:36.741 I Waiting for request
09:45:36.746 I Request received: [...]
@LeBezout
Copy link
Author

LeBezout commented Dec 15, 2020

Shame on me, duplicate from #260 & #261

@gnodet
Copy link
Contributor

gnodet commented Dec 15, 2020

The fact that TSTP or INT signals can't be registered should not causeany problem. I'll enhance the warning to explain.
So it should be unrelated to the daemon not being reused, unless you actually hit Ctrl+C or Ctrl+Z in the client, which would cause the daemon to die.

@ppalaga
Copy link
Contributor

ppalaga commented Dec 15, 2020

Thanks for the report anyway, @LeBezout. Your report brought the most of details that helped me to find out that we have solved this exact problem in the past already but the fix disappeared through some refactoring.

@ppalaga ppalaga added this to the 0.2.0 milestone Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants