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

False positives for java processes #185

Closed
izaera opened this issue Jun 16, 2020 · 2 comments
Closed

False positives for java processes #185

izaera opened this issue Jun 16, 2020 · 2 comments
Labels
Milestone

Comments

@izaera
Copy link

izaera commented Jun 16, 2020

I'm experiencing false positives with java processes that seem to use temporary files.

My platform is Arch Linux and I'm using Oracle JDK 1.8.0_251.

My hypothesis is that some API is creating temporary files and immediately deleting them to avoid leaving them hanging around, because I'm seeing the following output from needrestart:

$ needrestart -v
[main] eval /etc/needrestart/needrestart.conf
[main] needrestart v3.5
[main] running in user mode
[Core] Using UI 'NeedRestart::UI::stdio'...
[main] systemd detected
[Core] #4803 is a NeedRestart::Interp::Python
[Python] #4803: source=/usr/bin/chrome-gnome-shell
[main] #16676 uses deleted /home/ivan/.cache/JetBrains/IntelliJIdea2020.1/tmp/jna4214035373404461359.tmp
[main] #22353 uses deleted /home/ivan/Liferay/CE/bundles/osgi/state/org.eclipse.osgi/162/data/elasticSearch-tmpDir/jna3624712770618623498.tmp
Your outdated processes:
java[22353, 16676]

I would like to narrow the error a bit more, but I have never used Perl, so I have no idea how to debug it :-(.

@koocotte
Copy link

I had the same problem with openhab2.

You can configure needrestard to ignore filepath based on regex in /etc/needrestart/conf.d/

I set needrestart to ignore files in the /var/lib/openhab2/.cache/JNA/ directory :
/etc/needrestart/conf.d/ignore-openhab2.conf

# Ignore openhab2 temporary file
push @{$nrconf{blacklist_mappings}}, qr#^/var/lib/openhab2/.cache/JNA/#;

@fpoulain
Copy link

Similar problem on java process for Jitsi Video Bridge : jitsi/jitsi-videobridge#1166

Solved with

$nrconf{blacklist_mappings} = [
[…]
    # Videobridge
    qr(^/tmp/jna-),

in /etc/needrestart/needrestart.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants