Problem mit Tomcat und zu vielen Anfragen

wpb

Erfahrenes Mitglied
Hallo!

Bin grad dabei mein Servlet zu testeb.
Dazu hab ich so eine Art Lasttest implementiert. Ich schick
"gleichzeitig" ca. 200 Anfragen an mein Servlet. Ich arbeite dazu mit Threads.
Nach ca. 150 Anfragen geht Tomcat in die Knie. Ich muss dann den Tomcat neu starten. Der macht sonst gar nichts mehr.

Gibt es eine Möglichkeit diesen Fehler abzufangen?
Also vorher zu überprüfen, ob noch Sockets frei sind?

Kann wer weiterhelfen?
Danke
 
Problem ist bei mir auch...

Wenn man in der config den Stacktrace einschaltet bekommt folgende Meldung:
Code:
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs
|Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: n/a; see opera:config#UserPrefs|
Exceptions Have Stacktrace stacktrace: 
Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){throw new Validate.Error(A);} 
Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(C,E){var C=String(C);var E=E||{};var A=E.failureMessage||"Not valid!";var B=E.pattern||/./;var D=E.negate||false;if(!D&&!B.test(C)){Validate.fail(A);}if(D&&B.test(C)){Validate.fail(A);}return true;} 
Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(B,C){var C=C||{};var A=C.failureMessage||"Must be a valid email address!";Validate.Format(B,{failureMessage:A,pattern:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i});return true;} 
Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A,C){var D=(this.elementType==LiveValidation.SELECT)?this.element.options[this.element.selectedIndex].value:this.element.value;if(A==Validate.Acceptance){if(this.elementType!=LiveValidation.CHECKBOX){throw new Error("LiveValidation::validateElement - Element to validate acceptance must be a checkbox!");}D=this.element.checked;}var E=true;try{A(D,C);}catch(B){if(B instanceof Validate.Error){if(D!==""||(D===""&&this.displayMessageWhenEmpty)){this.validationFailed=true;this.message=B.message;E=false;}}else{throw B;}}finally{return E;}} 
Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){this.validationFailed=false;for(var C=0,A=this.validations.length;C<A;++C){var B=this.validations[ C];switch(B.type){case Validate.Presence:case Validate.Confirmation:case Validate.Acceptance:this.displayMessageWhenEmpty=true;this.validationFailed=!this.validateElement(B.type,B.params);break;default:this.validationFailed=!this.validateElement(B.type,B.params);break;}if(this.validationFailed){return false;}}this.message=this.validMessage;return true;} 
Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){if(!this.element.disabled){var A=this.doValidations();if(A){this.onValid();return true;}else{this.onInvalid();return false;}}else{return true;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){this.focused=false;this.validate(A);} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(F){A.doOnBlur(F);return A.oldOnBlur.call(this,F);} ... stacktrace: Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){throw new Validate.Error(A);} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(C,E){var C=String(C);var E=E||{};var A=E.failureMessage||"Not valid!";var B=E.pattern||/./;var D=E.negate||false;if(!D&&!B.test(C)){Validate.fail(A);}if(D&&B.test(C)){Validate.fail(A);}return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(B,C){var C=C||{};var A=C.failureMessage||"Must be a valid email address!";Validate.Format(B,{failureMessage:A,pattern:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i});return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A,C){var D=(this.elementType==LiveValidation.SELECT)?this.element.options[this.element.selectedIndex].value:this.element.value;if(A==Validate.Acceptance){if(this.elementType!=LiveValidation.CHECKBOX){throw new Error("LiveValidation::validateElement - Element to validate acceptance must be a checkbox!");}D=this.element.checked;}var E=true;try{A(D,C);}catch(B){if(B instanceof Validate.Error){if(D!==""||(D===""&&this.displayMessageWhenEmpty)){this.validationFailed=true;this.message=B.message;E=false;}}else{throw B;}}finally{return E;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){this.validationFailed=false;for(var C=0,A=this.validations.length;C<A;++C){var B=this.validations[ C];switch(B.type){case Validate.Presence:case Validate.Confirmation:case Validate.Acceptance:this.displayMessageWhenEmpty=true;this.validationFailed=!this.validateElement(B.type,B.params);break;default:this.validationFailed=!this.validateElement(B.type,B.params);break;}if(this.validationFailed){return false;}}this.message=this.validMessage;return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){if(!this.element.disabled){var A=this.doValidations();if(A){this.onValid();return true;}else{this.onInvalid();return false;}}else{return true;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){A.validate();} ... stacktrace: Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){throw new Validate.Error(A);} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(C,E){var C=String(C);var E=E||{};var A=E.failureMessage||"Not valid!";var B=E.pattern||/./;var D=E.negate||false;if(!D&&!B.test(C)){Validate.fail(A);}if(D&&B.test(C)){Validate.fail(A);}return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(B,C){var C=C||{};var A=C.failureMessage||"Must be a valid email address!";Validate.Format(B,{failureMessage:A,pattern:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i});return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A,C){var D=(this.elementType==LiveValidation.SELECT)?this.element.options[this.element.selectedIndex].value:this.element.value;if(A==Validate.Acceptance){if(this.elementType!=LiveValidation.CHECKBOX){throw new Error("LiveValidation::validateElement - Element to validate acceptance must be a checkbox!");}D=this.element.checked;}var E=true;try{A(D,C);}catch(B){if(B instanceof Validate.Error){if(D!==""||(D===""&&this.displayMessageWhenEmpty)){this.validationFailed=true;this.message=B.message;E=false;}}else{throw B;}}finally{return E;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){this.validationFailed=false;for(var C=0,A=this.validations.length;C<A;++C){var B=this.validations[ C];switch(B.type){case Validate.Presence:case Validate.Confirmation:case Validate.Acceptance:this.displayMessageWhenEmpty=true;this.validationFailed=!this.validateElement(B.type,B.params);break;default:this.validationFailed=!this.validateElement(B.type,B.params);break;}if(this.validationFailed){return false;}}this.message=this.validMessage;return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){if(!this.element.disabled){var A=this.doValidations();if(A){this.onValid();return true;}else{this.onInvalid();return false;}}else{return true;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){A.validate();} ... stacktrace: Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){throw new Validate.Error(A);} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(C,E){var C=String(C);var E=E||{};var A=E.failureMessage||"Not valid!";var B=E.pattern||/./;var D=E.negate||false;if(!D&&!B.test(C)){Validate.fail(A);}if(D&&B.test(C)){Validate.fail(A);}return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(B,C){var C=C||{};var A=C.failureMessage||"Must be a valid email address!";Validate.Format(B,{failureMessage:A,pattern:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i});return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A,C){var D=(this.elementType==LiveValidation.SELECT)?this.element.options[this.element.selectedIndex].value:this.element.value;if(A==Validate.Acceptance){if(this.elementType!=LiveValidation.CHECKBOX){throw new Error("LiveValidation::validateElement - Element to validate acceptance must be a checkbox!");}D=this.element.checked;}var E=true;try{A(D,C);}catch(B){if(B instanceof Validate.Error){if(D!==""||(D===""&&this.displayMessageWhenEmpty)){this.validationFailed=true;this.message=B.message;E=false;}}else{throw B;}}finally{return E;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){this.validationFailed=false;for(var C=0,A=this.validations.length;C<A;++C){var B=this.validations[ C];switch(B.type){case Validate.Presence:case Validate.Confirmation:case Validate.Acceptance:this.displayMessageWhenEmpty=true;this.validationFailed=!this.validateElement(B.type,B.params);break;default:this.validationFailed=!this.validateElement(B.type,B.params);break;}if(this.validationFailed){return false;}}this.message=this.validMessage;return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){if(!this.element.disabled){var A=this.doValidations();if(A){this.onValid();return true;}else{this.onInvalid();return false;}}else{return true;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){this.focused=false;this.validate(A);} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(F){A.doOnBlur(F);return A.oldOnBlur.call(this,F);} ... stacktrace: Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){throw new Validate.Error(A);} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(C,E){var C=String(C);var E=E||{};var A=E.failureMessage||"Not valid!";var B=E.pattern||/./;var D=E.negate||false;if(!D&&!B.test(C)){Validate.fail(A);}if(D&&B.test(C)){Validate.fail(A);}return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(B,C){var C=C||{};var A=C.failureMessage||"Must be a valid email address!";Validate.Format(B,{failureMessage:A,pattern:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i});return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A,C){var D=(this.elementType==LiveValidation.SELECT)?this.element.options[this.element.selectedIndex].value:this.element.value;if(A==Validate.Acceptance){if(this.elementType!=LiveValidation.CHECKBOX){throw new Error("LiveValidation::validateElement - Element to validate acceptance must be a checkbox!");}D=this.element.checked;}var E=true;try{A(D,C);}catch(B){if(B instanceof Validate.Error){if(D!==""||(D===""&&this.displayMessageWhenEmpty)){this.validationFailed=true;this.message=B.message;E=false;}}else{throw B;}}finally{return E;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){this.validationFailed=false;for(var C=0,A=this.validations.length;C<A;++C){var B=this.validations[ C];switch(B.type){case Validate.Presence:case Validate.Confirmation:case Validate.Acceptance:this.displayMessageWhenEmpty=true;this.validationFailed=!this.validateElement(B.type,B.params);break;default:this.validationFailed=!this.validateElement(B.type,B.params);break;}if(this.validationFailed){return false;}}this.message=this.validMessage;return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){if(!this.element.disabled){var A=this.doValidations();if(A){this.onValid();return true;}else{this.onInvalid();return false;}}else{return true;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){A.validate();} ... stacktrace: Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){throw new Validate.Error(A);} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(C,E){var C=String(C);var E=E||{};var A=E.failureMessage||"Not valid!";var B=E.pattern||/./;var D=E.negate||false;if(!D&&!B.test(C)){Validate.fail(A);}if(D&&B.test(C)){Validate.fail(A);}return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(B,C){var C=C||{};var A=C.failureMessage||"Must be a valid email address!";Validate.Format(B,{failureMessage:A,pattern:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i});return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A,C){var D=(this.elementType==LiveValidation.SELECT)?this.element.options[this.element.selectedIndex].value:this.element.value;if(A==Validate.Acceptance){if(this.elementType!=LiveValidation.CHECKBOX){throw new Error("LiveValidation::validateElement - Element to validate acceptance must be a checkbox!");}D=this.element.checked;}var E=true;try{A(D,C);}catch(B){if(B instanceof Validate.Error){if(D!==""||(D===""&&this.displayMessageWhenEmpty)){this.validationFailed=true;this.message=B.message;E=false;}}else{throw B;}}finally{return E;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){this.validationFailed=false;for(var C=0,A=this.validations.length;C<A;++C){var B=this.validations[ C];switch(B.type){case Validate.Presence:case Validate.Confirmation:case Validate.Acceptance:this.displayMessageWhenEmpty=true;this.validationFailed=!this.validateElement(B.type,B.params);break;default:this.validationFailed=!this.validateElement(B.type,B.params);break;}if(this.validationFailed){return false;}}this.message=this.validMessage;return true;} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(){if(!this.element.disabled){var A=this.doValidations();if(A){this.onValid();return true;}else{this.onInvalid();return false;}}else{return true;}} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(A){this.focused=false;this.validate(A);} Line 4 of linked script http://edgespan.de/Foren/scripts/livevalidation_standalone.js function(F){A.doOnBlur(F);return A.oldOnBlur.call(this,F);} ...

Entweder wird der Fehler bei den andern Browsern nicht geworfen oder nicht angezeigt.
 
Zuletzt bearbeitet:

Neue Beiträge

Zurück