Updater: handling OOM errors (and other), increased Xmx for updater process

This commit is contained in:
Anton Makeev
2013-02-14 13:13:59 +01:00
parent 4c65167f18
commit bc9ae62f30
3 changed files with 5 additions and 1 deletions
@@ -139,6 +139,7 @@ public class Main {
Collections.addAll(args,
System.getProperty("java.home") + "/bin/java",
"-Xmx700m",
"-classpath",
copyPatchFile.getPath(),
"com.intellij.updater.Runner",
+1 -1
View File
@@ -200,7 +200,7 @@ public class Patch {
shouldRevert = true;
cancelled = true;
}
catch (Exception e) {
catch (Throwable e) {
shouldRevert = true;
ui.showError(e);
}
@@ -187,6 +187,9 @@ public class SwingUpdaterUI implements UpdaterUI {
}
catch (OperationCancelledException ignore) {
}
catch(Throwable e) {
showError(e);
}
finally {
isRunning.set(false);