J'essaye ceci avec le modèle d'application de bureau de NetBeans - augmentant le tas (à 512 Mio) du fichier .jar exécuté. (Je crois que NetBeans utilise l'application Singleton par défaut - SingleFrameView) Cela fonctionnera-t-il?Taille de segment Java - est-ce que cela fonctionnera?
public static void main(String[] args) {
if (args == null) {
args = new String[1];
args[0] = "Xmx512m";
} else {
String[] tempArgs = new String[args.length+1];
for (int i=0; i<args.length; i++) {
tempArgs[i] = args[i];
}
tempArgs[tempArgs.length-1] = "Xmx512m";
args = tempArgs;
}
launch(MyApp.class, args);
}
}
Cela "semble" fonctionner, mais pas si cette application utilise vraiment 512 Mo de heap (JVM fait) – UnCon
Quelle est cette méthode de lancement()? –
ici jeter un oeil https://appframework.dev.java.net/nonav/javadoc/AppFramework-1.03/index.html – UnCon