Brad,
At least one potential source of the OutOfMemory error you're observing is known and being addressed (see the discussions about "Target" on this mailing list - especially the emails from Andrei Ivanov). To debug this, I'd suggest you revert your change to the environment.xml - keep the log level at DEBUG so we can get some useful info. --Peter > -----Original Message----- > From: Brad Walker [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 12:46 PM > To: 'James Users List' > Subject: James load testing problems -- OutOfMemoryError > > All, > > First let me preface this by saying that I don't know if this is the right > forum for this kind of question, but currently I am quite a n00b when it > comes to the whole James/Avalon framework. If there is a better mailing > list > that this question should be directed to, please advise. > > With that said, here are the specs on my current configuration, and here > is > my problem: > > Windows XP > Sun JDK 1.4.0 > James 2.1a1-2002-09-24 (running Phoenix 4.0 release version) > PIII 1GHz, 512MB RAM > > I am trying to do some load testing against James using the smtp-source > program that ships with postfix. Essentially what I have done is taken a > completely default configuration of James (the ONLY change made was to set > the default log level from DEBUG to ERROR in environment.xml, added a > servername in config.xml, and setup 1 mailbox through remote manager), and > tried to see how it stands up to some level of sustained SMTP traffic. > > I configured smtp-source to use 10 threads, and send 10,000 ~3k messages > to > the mailbox I just setup. When I start smtp-source, things start out okay > -- mail gets delivered. After probably 3-5 minutes of sustained mail > processing, smtp-source gets disconnected with the following error > message: > ./smtp-source: fatal: lost connection while reading server greeting. > > If I try to start it up again, sometimes it will connect and start sending > messages, sometimes it just repeats the same error message. If, in the > later > case, I try to telnet to port 25 on my james server, I connect, then > immediately get disconnected. At this point the only thing I can do is > shut > down James and start it up again. Upon doing so, I can start smtp-source > again, but the cycle just starts over, and eventlually the same error > occurs. > > To top it all off, I am getting OutOfMemoryErrors. I found that my JVM is > using in excess of 100MB of RAM. What concerns me is that the total number > of messages sent from smtp-source is quite small -- < 5000. Here are the > only logs that were generated during this trial ( default.log ): > > 04/10/02 03:24:54 ERROR smtpserver: Connection timeout on socket > 04/10/02 03:24:55 ERROR smtpserver: Connection timeout on socket > 04/10/02 03:24:55 ERROR smtpserver: Connection timeout on socket > 04/10/02 03:24:55 ERROR smtpserver: Connection timeout on socket > 04/10/02 03:24:55 ERROR smtpserver: Connection timeout on socket > 04/10/02 03:37:47 ERROR mailstore: Exception storing mail: > java.lang.NullPointerException > 04/10/02 03:37:48 ERROR smtpserver: 451 Error processing message: > Exception > spooling message: Exception caught while storing Message Container: > java.lang.NullPointerException; > nested exception is: > java.lang.RuntimeException: Exception caught while storing Message > Container: java.lang.NullPointerException > 04/10/02 03:37:48 ERROR mailstore: Exception retrieving mail: > java.lang.RuntimeException: Exception caught while retrieving an object: > java.io.FileNotFoundException: > C:\java\james-2.1a1-2002-09- > 24\apps\james\var\mail\spool\4D61696C31303333373 > 6303236373135382D31393339.Repository1.FileObjectStore (The system cannot > find the file specified), so we're deleting it... good riddance! > 04/10/02 03:37:48 ERROR mailstore: Exception retrieving mail: > java.lang.RuntimeException: Exception caught while retrieving an object: > java.io.FileNotFoundException: > C:\java\james-2.1a1-2002-09- > 24\apps\james\var\mail\spool\4D61696C31303333373 > 6303236373135382D31393337.Repository1.FileObjectStore (The system cannot > find the file specified), so we're deleting it... good riddance! > > > So, with that said, does anybody know where I should start in terms of > debugging all of this? My hope is that James would be able to handle > sustained > SMTP load (even if performance decreases as load increases). Having it > crash > with OutOfMemoryErrors is rather disconcerting. Have other people run > load > tests against their servers and seen similar/different results? > > Any help would be appreciated. > > Thanks, > Brad > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Brad D. Walker > Sr. Software Engineer > Student Advantage, Inc. > 617-880-1737 > <mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED] > <http://www.studentadvantage.com/> http://www.studentadvantage.com > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
