Running many centrality analytics in the Analytic View on a large graph can produce a java.lang.OutOfMemoryError: Java heap space error. This is somewhat related to issue https://github.com/constellation-app/constellation/issues/2191 but is not a problem with the "Katz Centrality Analytic".
Steps to Reproduce
Open a large graph in consty. E.g. build a sphere graph with 100,000 nodes and 50 transactions
Open analytic view, click categories dropdown and select many (if not all) centrality check boxes. It is not necessary to check "Katz Centrality Analytic" to get this error thrown. For example, checking all boxes except for "Katz Centrality Analytic" threw the error
Click Run and observe exception thrown
Expected behaviour: Either no exception is thrown, or user is alerted of insufficient memory in a more friendly way
Actual behaviour:java.lang.OutOfMemoryError: Java heap space is thrown
Reproduces how often: About 90% of the time
Additional Information
Sometimes application doesn't respond for a moment, but comes back eventually
Sometimes analytic view is stuck running and can't be stopped, but otherwise application is fine
Sometimes doesn't even happen
Running a second time (without closing the app) DOESN'T cause an error. Probably some sort of cache helping out
Different stack traces in error messages:
java.lang.OutOfMemoryError: Java heap space
au.gov.asd.tac.constellation.graph.node.plugins.DefaultPluginInteraction$Timer.getTime(DefaultPluginInteraction.java:338)
au.gov.asd.tac.constellation.graph.node.plugins.DefaultPluginInteraction$Timer.getTime(DefaultPluginInteraction.java:317)
au.gov.asd.tac.constellation.graph.node.plugins.DefaultPluginInteraction$Timer.run(DefaultPluginInteraction.java:359)
Prerequisites
[x] Put an X between the brackets on this line if you have done all of the following:
Running the latest version of Constellation
Attached the Support Package via
Help
>Support Package
Checked the FAQs: https://github.com/constellation-app/constellation/wiki/FAQ
Checked that your issue isn’t already filed: https://github.com/constellation-app/constellation/issues
Checked that there is not already a module that provides the described functionality: https://github.com/constellation-app/constellation/wiki/Catalogue-of-Repositories
Description
Running many centrality analytics in the Analytic View on a large graph can produce a
java.lang.OutOfMemoryError: Java heap space
error. This is somewhat related to issue https://github.com/constellation-app/constellation/issues/2191 but is not a problem with the "Katz Centrality Analytic".Steps to Reproduce
Open a large graph in consty. E.g. build a sphere graph with 100,000 nodes and 50 transactions
Open analytic view, click categories dropdown and select many (if not all) centrality check boxes. It is not necessary to check "Katz Centrality Analytic" to get this error thrown. For example, checking all boxes except for "Katz Centrality Analytic" threw the error
Click Run and observe exception thrown
Expected behaviour: Either no exception is thrown, or user is alerted of insufficient memory in a more friendly way
Actual behaviour:
java.lang.OutOfMemoryError: Java heap space
is thrownReproduces how often: About 90% of the time
Additional Information
Different stack traces in error messages: