Skip to content

Commit

Permalink
fix bug in mgf parser with null charge, change gc, added gc hints to …
Browse files Browse the repository at this point in the history
…buffer, release 5.8.1
  • Loading branch information
mfleisch committed Jul 7, 2023
1 parent 60fa58b commit c101b5f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ protected void cleanup() {
logInfo("Freeing up memory...");
computation = null;
System.gc(); //hint for the gc to collect som trash after computations
System.runFinalization();
logInfo("Memory freed!");
} finally {
if (AUTOREMOVE.get())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ public void start(final boolean invalidate) throws InterruptedException {
}
}

{ //gc hint
if (instanceComputed.get() % bufferSize == 0) {
System.gc(); //hint for the gc to collect som trash after computations
System.runFinalization();
}
}

lock.lock();
try {
//wait for free slot in buffer if it is full
Expand All @@ -103,7 +110,6 @@ public void start(final boolean invalidate) throws InterruptedException {
checkForCancellation();
}


checkForCancellation();

final Instance instance = instances.next();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#here you can provide properties that may be needed during build- AND during runtime and should not be editable by the user at runtime
de.unijena.bioinf.siriusFrontend.version=5.8.1-SNAPSHOT
de.unijena.bioinf.sirius.version=4.13.0
de.unijena.bioinf.fingerid.version=2.6.15
de.unijena.bioinf.siriusFrontend.version=5.8.1
de.unijena.bioinf.sirius.version=4.13.1
de.unijena.bioinf.fingerid.version=2.6.16
#
de.unijena.bioinf.sirius.http.job.fingerprint.limit = 5000
de.unijena.bioinf.sirius.http.job.canopus.limit = 5000
Expand Down
6 changes: 4 additions & 2 deletions sirius_dist/sirius_gui_dist/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ def mainJar = getRootProject().getChildProjects().get('sirius_rest_service').tas
application {
mainClass = project.mainClassName
applicationDefaultJvmArgs = ['-Xms1G',
'-XX:MaxRAMPercentage=85',
'-XX:+UseG1GC',
'-XX:MaxRAMPercentage=65',
// '-XX:+UseG1GC',
// '-XX:+UseShenandoahGC',
'-XX:+UseZGC',
'-XX:+UseStringDeduplication',
'-XX:+ExitOnOutOfMemoryError']
executableDir = 'bin'
Expand Down

0 comments on commit c101b5f

Please sign in to comment.