NIHVIVO-719 set names on all created Threads, to help in diagnosing memory leaks.
This commit is contained in:
parent
4c862f846d
commit
df7047065d
5 changed files with 7 additions and 6 deletions
|
@ -275,6 +275,7 @@ public class BrowseController extends VitroHttpServlet {
|
|||
private boolean awareOfQueueChange = false;
|
||||
|
||||
RebuildGroupCacheThread(BrowseController controller) {
|
||||
super("RebuildGroupCacheThread");
|
||||
this.controller = controller;
|
||||
}
|
||||
public void run() {
|
||||
|
|
|
@ -49,7 +49,7 @@ public class MemToRDBModelSynchronizer extends StatementListener {
|
|||
lastEditTimeMillis = System.currentTimeMillis();
|
||||
this.editInProgress = false;
|
||||
if (!cleanupThreadActive) {
|
||||
(new Thread(new Cleanup(this))).start();
|
||||
(new Thread(new Cleanup(this), "MemToRDBModelSynchronizer")).start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ public class MemToRDBModelSynchronizer extends StatementListener {
|
|||
lastEditTimeMillis = System.currentTimeMillis();
|
||||
this.editInProgress = false;
|
||||
if (!cleanupThreadActive) {
|
||||
(new Thread(new Cleanup(this))).start();
|
||||
(new Thread(new Cleanup(this), "MemToRDBModelSynchronizer")).start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -282,6 +282,7 @@ public class VClassGroupCache implements ServletContextListener{
|
|||
private boolean awareOfQueueChange = false;
|
||||
|
||||
RebuildGroupCacheThread(VClassGroupCache cache) {
|
||||
super("VClassGroupCache.RebuildGroupCacheThread");
|
||||
this.cache = cache;
|
||||
}
|
||||
public void run() {
|
||||
|
|
|
@ -428,7 +428,7 @@ public class PelletListener implements ModelChangedListener {
|
|||
if (foreground) {
|
||||
(new InferenceGetter(this)).run();
|
||||
} else {
|
||||
new Thread(new InferenceGetter(this)).start();
|
||||
new Thread(new InferenceGetter(this), "PelletListener.InferenceGetter").start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -625,7 +625,7 @@ public class PelletListener implements ModelChangedListener {
|
|||
if (foreground) {
|
||||
(new PelletSynchronizer()).run();
|
||||
} else {
|
||||
new Thread(new PelletSynchronizer()).start();
|
||||
new Thread(new PelletSynchronizer(), "PelletListener.PelletSynchronizer").start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ import org.openrdf.model.impl.URIImpl;
|
|||
import org.openrdf.repository.Repository;
|
||||
import org.openrdf.repository.RepositoryConnection;
|
||||
import org.openrdf.repository.RepositoryException;
|
||||
import org.openrdf.repository.RepositoryResult;
|
||||
import org.openrdf.repository.http.HTTPRepository;
|
||||
import org.openrdf.rio.RDFFormat;
|
||||
import org.openrdf.rio.RDFParseException;
|
||||
|
@ -47,7 +46,7 @@ public class SesameSyncUtils {
|
|||
PipedInputStream in = new PipedInputStream();
|
||||
PipedOutputStream out = new PipedOutputStream(in);
|
||||
try {
|
||||
new Thread((new JenaOutputter(jenaModel, out))).start();
|
||||
new Thread(new JenaOutputter(jenaModel, out), "SesameSyncUtilities.JenaOutputter").start();
|
||||
if (contextRes != null) {
|
||||
myConn.add(in,"http://example.org/base/", RDFFormat.NTRIPLES, contextRes);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue