Bonjour,
Je travaille pour le moment sur une machine assez limitée, tant en mémoire qu'en vitesse d'accès disque, et donc j'ai besoin de restreindre mes différent process Java (Eclipse, GWT super dev, Wildfly domain) afin d'éviter que mon système ne s'effondre et que je me retrouve à attendre les 3/4 du temps devant des fenêtres grisées pendant que l'OS swappe comme un malade.
Problème, pour des raisons qui m'échappent, Eclipse qui devrait être limité à +-1G de mémoire se retrouve à dépasser les 2G. J'ai rajouté le paramètre MaxMetaspaceSize ce matin qui a eu son petit effet, pendant un moment, mais en fin de journée, le système s'est de nouveau effondré:
top - 18:27:58 up 10 days, 5:24, 1 user, load average: 1,97, 1,54, 1,26
Tasks: 318 total, 1 running, 317 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1,8 us, 0,8 sy, 0,0 ni, 84,5 id, 13,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem : 8045372 total, 274620 free, 6669640 used, 1101112 buff/cache
KiB Swap: 8257532 total, 5593744 free, 2663788 used. 309672 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1130 davidd 20 0 8066048 2,042g 26544 S 1,7 26,6 84:17.61 javaLes paramètres utilisés pour le moment sont un Xmx à 850M et un metasize à 256M$ free -m
total used free shared buff/cache available
Mem: 7856 6440 505 619 910 493
Swap: 8063 3097 4966
J'ai bien tenté un jmap pour savoir quel pool bouffait cette mémoire mais j'ai eu droit à un/home/davidd/Applications/java/64bits/jdk1.8.0_102/bin/java -Dosgi.requiredJavaVersion=1.8 -XX:+UseG1GC -XX:+UseStringDeduplication -Dosgi.requiredJavaVersion=1.8 -Xms256m -Xmx850m -XX:MaxMetaspaceSize=256m -jar /home/davidd/Applications/eclipse-jee-neon//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /home/davidd/Applications/eclipse-jee-neon/eclipse -name Eclipse --launcher.library /home/davidd/Applications/eclipse-jee-neon//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so -startup /home/davidd/Applications/eclipse-jee-neon//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar --launcher.appendVmargs -exitdata 6b800a -product org.eclipse.epp.package.jee.product org.eclipse.platform -vm /home/davidd/Applications/java/64bits/jdk1.8.0_102/bin/java -vmargs -Dosgi.requiredJavaVersion=1.8 -XX:+UseG1GC -XX:+UseStringDeduplication -Dosgi.requiredJavaVersion=1.8 -Xms256m -Xmx850m -XX:MaxMetaspaceSize=256m -jar /home/davidd/Applications/eclipse-jee-neon//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
Quelqu'un aurait-il des paramètres supplémentaires à me suggérer ?Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 9883: Operation not permitted
sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 9883: Operation not permitted
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:163)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:278)
at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:671)
at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:611)
at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:337)
at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304)
at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:140)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.tools.jmap.JMap.runTool(JMap.java:201)
at sun.tools.jmap.JMap.main(JMap.java:130)
Caused by: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 9883: Operation not permitted
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$100(LinuxDebuggerLocal.java:62)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1AttachTask.doit(LinuxDebuggerLocal.java:269)
at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(LinuxDebuggerLocal.java:138)
Merci d'avance pour votre aide.
Partager