From 756dd0708adb5f8a98958ce127593f191dfd75b1 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 21 May 2010 10:07:17 +0000 Subject: [PATCH] comment about trapping OOMs --- src/jalview/ws/JobStateSummary.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/jalview/ws/JobStateSummary.java b/src/jalview/ws/JobStateSummary.java index 0983dc0..e6d176a 100644 --- a/src/jalview/ws/JobStateSummary.java +++ b/src/jalview/ws/JobStateSummary.java @@ -54,8 +54,8 @@ public class JobStateSummary * @param OutputHeader * @param j */ - public void updateJobPanelState(WebserviceInfo wsInfo, String OutputHeader, - AWsJob j) + public void updateJobPanelState(WebserviceInfo wsInfo, + String OutputHeader, AWsJob j) { if (j.submitted) { @@ -108,7 +108,16 @@ public class JobStateSummary wsInfo.appendProgressText(j.jobnum, progheader); if (j.hasStatus()) { + // Could try to squash OOMs here, but it usually doesn't help - there probably won't be + // enough memory to handle the results later on anyway. + // try { wsInfo.appendProgressText(j.jobnum, j.getStatus()); + // } catch (OutOfMemoryError e) + // { + // System.err.println("Out of memory when displaying status. Squashing error."); + // wsInfo.appendProgressText(j.jobnum, + // "..\n(Out of memory when displaying status)\n"); + // } } } else -- 1.7.10.2