Author Topic: [Résolu] CPU à 100%  (Read 681 times)

0 Members and 1 Guest are viewing this topic.

Offline nominoe31

  • VIP
  • Full Member
  • *
  • Posts: 24
    • View Profile
Re : CPU à 100%
« Reply #15 on: April 20, 2022, 07:19:36 »
Bonjour

J'avais bien des paramètres derrière default_options, là j'ai repris ceux dispos dans la version quotidienne d'Ancestris, et ça plante toujours au lancement.

16
Code: [Select]

 
Identifying path and application name:
   progdir=.
   APPNAME=ancestris
 
Checking configuration file on progdir/../etc:
   Configuration file found. Executing it.
 
Identifying userdir from configuration file:
   userdir(from conf file)=/home/****/.ancestris/trunk
   userdir(after argument overwrite)=/home/****/.ancestris/trunk
 
Checking configuration file on userdir/etc:
   Configuration file found. Executing It.
 
Checking if jdkhome is defined: (for MacOS, /Contents/Home should be at the end)
   jdkhome=
   jdkhome not defined.
 
Checking JAVA presence
   Linux...
================================================================
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 16.0.1+9-Ubuntu-120.04, mixed mode, sharing)
================================================================
Found JAVA executable in PATH
JAVA is installed.
JAVA version is more than 1.8
jdkhome was left empty.
 
Defining clusters:
   clusters=/media/data1/Download/ancestris/ancestris:/media/data1/Download/ancestris/harness:
 
Defining exec command:
   nbexec=./../platform/lib/nbexec
 
Running exec command:
   => Linux system detected...
 
Command to be executed:
 
exec /bin/bash './../platform/lib/nbexec'             --jdkhome ''             --clusters '/media/data1/Download/ancestris/ancestris:/media/data1/Download/ancestris/harness:'             --userdir '/home/****/.ancestris/trunk'             -J-Xmx4g --branding ancestris --fontsize 12 -J-Xms96m             
 
avr. 20, 2022 8:12:09 AM org.netbeans.ProxyURLStreamHandlerFactory register
GRAVE: No way to find original stream handler for jar protocol
java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module @4434095f
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
        at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59)
        at org.netbeans.JarClassLoader.<clinit>(JarClassLoader.java:117)
        at org.netbeans.MainImpl.execute(MainImpl.java:153)
        at org.netbeans.MainImpl.main(MainImpl.java:60)
        at org.netbeans.Main.main(Main.java:58)

java.lang.Error: factory already defined
        at java.base/java.net.URL.setURLStreamHandlerFactory(URL.java:1259)
        at org.eclipse.osgi.framework.internal.core.Framework.installURLStreamHandlerFactory(Framework.java:1765)
        at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:232)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:67)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37)
        at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
        at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:63)
        at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:146)
        at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:115)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1441)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1254)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:156)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:125)
        at org.netbeans.core.startup.Main.start(Main.java:282)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
        at java.base/java.lang.Thread.run(Thread.java:831)

17
Code: [Select]

 
Identifying path and application name:
   progdir=.
   APPNAME=ancestris
 
Checking configuration file on progdir/../etc:
   Configuration file found. Executing it.
 
Identifying userdir from configuration file:
   userdir(from conf file)=/home/****/.ancestris/trunk
   userdir(after argument overwrite)=/home/***/.ancestris/trunk
 
Checking configuration file on userdir/etc:
   Configuration file found. Executing It.
 
Checking if jdkhome is defined: (for MacOS, /Contents/Home should be at the end)
   jdkhome=
   jdkhome not defined.
 
Checking JAVA presence
   Linux...
================================================================
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 17.0.2+8-Ubuntu-120.04, mixed mode, sharing)
================================================================
Found JAVA executable in PATH
JAVA is installed.
JAVA version is more than 1.8
jdkhome was left empty.
 
Defining clusters:
   clusters=/media/data1/Download/ancestris/ancestris:/media/data1/Download/ancestris/harness:
 
Defining exec command:
   nbexec=./../platform/lib/nbexec
 
Running exec command:
   => Linux system detected...
 
Command to be executed:
 
exec /bin/bash './../platform/lib/nbexec'             --jdkhome ''             --clusters '/media/data1/Download/ancestris/ancestris:/media/data1/Download/ancestris/harness:'             --userdir '/home/****/.ancestris/trunk'             -J-Xmx4g --branding ancestris --fontsize 12 -J-Xms96m             
 
avr. 20, 2022 8:14:12 AM org.netbeans.ProxyURLStreamHandlerFactory register
GRAVE: No way to find original stream handler for jar protocol
java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module @53c4a559
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59)
        at org.netbeans.JarClassLoader.<clinit>(JarClassLoader.java:117)
        at org.netbeans.MainImpl.execute(MainImpl.java:153)
        at org.netbeans.MainImpl.main(MainImpl.java:60)
        at org.netbeans.Main.main(Main.java:58)

java.lang.Error: factory already defined
        at java.base/java.net.URL.setURLStreamHandlerFactory(URL.java:1228)
        at org.eclipse.osgi.framework.internal.core.Framework.installURLStreamHandlerFactory(Framework.java:1765)
        at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:232)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:67)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37)
        at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
        at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:63)
        at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:146)
        at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:115)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1441)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1254)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:156)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:125)
        at org.netbeans.core.startup.Main.start(Main.java:282)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
        at java.base/java.lang.Thread.run(Thread.java:833)

Nominoe31
« Last Edit: April 20, 2022, 07:29:34 by nominoe31 »

Offline Jeannot

  • VIP
  • Hero Member
  • *
  • Posts: 301
    • View Profile
Re: CPU à 100%
« Reply #16 on: April 20, 2022, 07:32:55 »
Bonjour,

Sous Kubuntu 20.04 64bit
Version d'Ancestris :  12.0.11644
Java :  17.0.2+8-Ubuntu-120.04 - /usr/lib/jvm/java-17-openjdk-amd64
Système :  Linux - 5.13.0-40-generic - jeannot
Répertoire utilisateur :  /home/jeannot/.ancestris/trunk
Mémoire allouée 4Go

Process 3652 - java
Summary
The process java (with pid 3652) is using approximately 1.1 GB of memory.
It is using 1.1 GB privately, and a further 12.8 MB that is, or could be, shared with other programs.
Dividing up the shared memory between all the processes sharing that memory we get a reduced shared memory usage of 590.0 KB. Adding that to the private usage, we get the above mentioned total memory footprint of 1.1 GB.
Library Usage
The memory usage of a process is found by adding up the memory usage of each of its libraries, plus the process's own heap, stack and any other mappings, plus the stack of its 41 threads.
Private
more
1141484 KB   [heap]
15596 KB   /usr/lib/jvm/java-17-openjdk-amd64/lib/server/libjvm.so
13116 KB   /usr/lib/jvm/java-17-openjdk-amd64/lib/server/classes.jsa
5540 KB   /usr/lib/jvm/java-17-openjdk-amd64/lib/modules
764 KB   /usr/lib/jvm/java-17-openjdk-amd64/lib/libawt.so
Shared
more
1552 KB   /usr/lib/x86_64-linux-gnu/libc-2.31.so
840 KB   /var/cache/fontconfig/69524576-40f3-4501-95a4-ae1505b838d4-le64.cache-7
820 KB   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28
792 KB   /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.20600.4
792 KB   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
Totals
Private   1179572 KB   (= 30896 KB clean + 1148676 KB dirty)
Shared   13060 KB   (= 13036 KB clean + 24 KB dirty)
Rss   1192632 KB   (= Private + Shared)
Pss   1180162 KB   (= Private + Shared/Number of Processes)
Swap   0 KB

Aucun problème

Amicalement
Jeannot

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 2 613
    • View Profile
Re: CPU à 100%
« Reply #17 on: April 20, 2022, 09:13:02 »
Il manque des paramètres pour permettre à Java 16 et 17 de fonctionner normalement.
La ligne default_options doit ressembler à cela :
default_options="--branding ancestris -J-Xms96m -J-Xmx1g --laf javax.swing.plaf.nimbus.NimbusLookAndFeel -J-XX:+IgnoreUnrecognizedVMOptions -J-XX:+UseStringDeduplication -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.zip.disableMemoryMapping=true -J--add-opens=java.base/java.net=ALL-UNNAMED -J--add-opens=java.base/java.lang.ref=ALL-UNNAMED -J--add-opens=java.base/java.lang=ALL-UNNAMED  -J--add-opens=java.base/java.util=ALL-UNNAMED -J--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED -J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED -J--add-exports=java.management/sun.management=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED -J--add-opens=java.desktop/java.awt=ALL-UNNAMED -J--add-opens=java.desktop/java.awt.event=ALL-UNNAMED -J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED -J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED -J--add-exports=java.desktop/sun.swing=ALL-UNNAMED -J--add-exports=java.desktop/sun.awt=ALL-UNNAMED -J--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED -J--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED -J--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED -J--add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED -J--add-opens=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED"

Le plus simple étant de supprimer le fichier ancestris.conf de votre répertoire utilisateur (typiquement dans /home/****/.ancestris/trunk/etc ) et de relancer Ancestris.

Zurga

Offline nominoe31

  • VIP
  • Full Member
  • *
  • Posts: 24
    • View Profile
Re: CPU à 100%
« Reply #18 on: April 20, 2022, 19:54:41 »
Le plus simple étant de supprimer le fichier ancestris.conf de votre répertoire utilisateur (typiquement dans /home/****/.ancestris/trunk/etc ) et de relancer Ancestris.
Ca marche nickel avec la V17.

Merci
Bonne soirée

Nominoe31