How To Crash a Domino Server in 500ms
1. Create a Java agent and do something in your finally block (or in a ThreadDeath exception handling) which runs longer than 500ms
import lotus.domino.AgentBase;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
int i = 0;
while (i < 1000) {
i++;
System.out.println("Round " + i);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {}
}
} finally {
try {
Thread.sleep(1000);
} catch (Exception e) {}
}
}
}
2. Run the agent on the server
3. Quit the Agent Manager
4. And then restart it
5. Enjoy the silence
Fun fact: This works well in a IBM Notes Client too! Just start the agent and cancel it a few times (<CTRL> + <BREAK>).
good method for crash tests 🙂
Nice „Feature“!!!