Message by Nuno Loureiro:
Hi all,
I ran I simulation during 1 day, but after it was finished SPIS buttons froze and I could not extract data. I have two questions regarding this issue:
1- Is there a way of exporting the data with Jyconsole when something like this happens?
I have tried the exportDataField.py but it seems not to be working. I always get this message: AttributeError: ‘NoneType’ object has no attribute ‘getNodeList’
2- Even if I did not save the project, I still have the data in the temporary file created by SPIS (for example I have the files potentials.txt and emittedCurrent.txt ).
Is there a way to import these values again to SPIS or simply use them with Paraview or Cassandra?
Thanks,
Nuno
Message by Ignacio Rocca:
Hi Nuno,
I understand that there is no way to export data when SPIS freezes, lke you says you have the currents and the potentials on the temporary folder, for other hand I recomend to you that before to run the simulation, exactly when export from UI to NUM, save the project.
Best Regards
Ignacio
Message by julien:
Dear Nuno, dear Igniacio,
You outline a “recent problem” (actually a old one but more frequent with the recent versions), that also depends on the OS/JVM. I have no general solution for the moment. But I will try to give some partial answers:
- I have observed that this problem appears more frequently with the recent (1.6) JVM, when the memory stack limit is reached. Surprisingly, when the JVM has no more memory free, it does not always crash as before but induce deadlock and may freeze the Swing layer. When this happens we did not found any solution yet. And generally, this appears at the end of the simulation, where we have an other load of memory cost.
But you may avoid this by:
- Increase your memory stack before the run, increase the -Xmx value through the JVM\_XMX flag in the launching scripts (e.g export JVM\_XMX=3000m in spis-ui.properties for SPIS 4.2+).
- Regularly force the garbage collector, using the jconsole tool of your JVM. Launch it is another shell. Connect to the SPIS job (Jython). Go to the memory index and click on "Perform GC". This may reduce the RAM footprint. At that time, extract the data and save the project.