You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Andrei Ivanov <my...@surfeu.fi> on 2002/05/30 11:01:18 UTC

James load test (some results)

Hi,
I performed some James load tests in very simple configuration: James acted
as SMTP Gateway

1. received e-mails
2. usual processing
3. remotely send e-mail (SMTP over ssl connection)

Size of e-mails was about 4K each. I had up to three clients "attacking"
James and one GW which acted as listener on the other end.
James was running on W2K, PIII650, 256MB RAM, Paging file 368M.

James crashed when number of request rate exceeded 30 requests / per second.
Exception is below.

Regards, Andrei

java.io.FileNotFoundException:
C:\DOCUME~1\aivanov\LOCALS~1\Temp\Mail1022743442819-16253054.m64
(Insufficient
system resources exist to complete the requested service)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at
org.apache.james.core.MimeMessageInputStreamSource.getInputStream(MimeMessag
eInputStreamSource.java
:63)
        at
org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:152
)
        at org.apache.james.core.MailImpl.writeMessageTo(MailImpl.java:216)
        at
org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
ory.java:196)
        at org.apache.james.James.sendMail(James.java:274)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invo
ke(BlockInvocationHandl
er.java:91)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:615)
        at
org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:248)
        at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:16
3)
        at
org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connect
ion.java:169)
        at
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
eRunnable.java:47)
        at
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
0)
java.lang.RuntimeException: Exception caught while storing a stream :
java.io.FileNotFoundException:
C:\TEMP\phoenix-bin\apps\James\var\mail\spool\4D61696C3130323237343334343433
30312D31363337.R
epository0.FileStreamStore (Insufficient system resources exist to complete
the requested service)
        at
org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Stream_Repo
sitory.put(File_Persist
ent_Stream_Repository.java:108)
        at
org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
ory.java:195)
        at org.apache.james.James.sendMail(James.java:274)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invo
ke(BlockInvocationHandl
er.java:91)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:615)
        at
org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:248)
        at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:16
3)
        at
org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connect
ion.java:169)
        at
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
eRunnable.java:47)
        at
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
0)
javax.mail.MessagingException: Exception spooling message: Exception caught
while storing Message Container: j
ava.io.FileNotFoundException:
C:\DOCUME~1\aivanov\LOCALS~1\Temp\Mail1022743442819-16253054.m64
(Insufficient s
ystem resources exist to complete the requested service);
  nested exception is:
        java.lang.RuntimeException: Exception caught while storing Message
Container: java.io.FileNotFoundExce
ption: C:\DOCUME~1\aivanov\LOCALS~1\Temp\Mail1022743442819-16253054.m64
(Insufficient system resources exist t
o complete the requested service)
        at org.apache.james.James.sendMail(James.java:280)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invo
ke(BlockInvocationHandl
er.java:91)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:615)
        at
org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:248)
        at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:16
3)
        at
org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connect
ion.java:169)
        at
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
eRunnable.java:47)
        at
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
0)
javax.mail.MessagingException: Exception spooling message: Exception caught
while storing Message Container: j
ava.lang.RuntimeException: Exception caught while storing a stream :
java.io.FileNotFoundException:
C:\TEMP\phoenix-bin\apps\James\var\mail\spool\4D61696C3130323237343334343433
30312D31363337.Re
pository0.FileStreamStore (Insufficient system resources exist to complete
the requested service);
  nested exception is:
        java.lang.RuntimeException: Exception caught while storing Message
Container: java.lang.RuntimeExcepti
on: Exception caught while storing a stream : java.io.FileNotFoundException:
C:\TEMP\phoenix-bin\app
s\James\var\mail\spool\4D61696C313032323734333434343330312D31363337.Reposito
ry0.FileStreamSto
re (Insufficient system resources exist to complete the requested service)
        at org.apache.james.James.sendMail(James.java:280)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invo
ke(BlockInvocationHandl
er.java:91)
        at $Proxy9.sendMail(Unknown Source)
        at
org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:615)
        at
org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:248)
        at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:16
3)
        at
org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connect
ion.java:169)
        at
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
eRunnable.java:47)
        at
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
0)






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: The Block interface has been... James -> latest Phoenix / Cornerstone

Posted by Danny Angus <da...@apache.org>.
by all means submit diffs (against the head of CVS) if you've already done
this

> -----Original Message-----
> From: Andrei Ivanov [mailto:myfam@surfeu.fi]
> Sent: 31 May 2002 13:35
> To: James Developers List
> Subject: The Block interface has been... James -> latest Phoenix
> / Cornerstone
>
>
> Hi,
> Is there any schedule for moving James onto latest Phoenix /
> Cornerstone. So
> far it throws exception as below. The changes required are minimal. I've
> done them for James I checked out today from apache cvs, It takes 10mins
> max. If needed I can contribute changes and diffs.
>
> Andrei
>
> --- Message ---
> Service class "org.apache.avalon.framework.component.Component" specified
> for Block named "smtpserver" is not implemented by Block class
> (org.apache.james.smtpserver.SMTPServer).
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


The Block interface has been... James -> latest Phoenix / Cornerstone

Posted by Andrei Ivanov <my...@surfeu.fi>.
Hi,
Is there any schedule for moving James onto latest Phoenix / Cornerstone. So
far it throws exception as below. The changes required are minimal. I've
done them for James I checked out today from apache cvs, It takes 10mins
max. If needed I can contribute changes and diffs.

Andrei

--- Message ---
Service class "org.apache.avalon.framework.component.Component" specified
for Block named "smtpserver" is not implemented by Block class
(org.apache.james.smtpserver.SMTPServer).


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: James load test (some results)

Posted by Stephan Schiessling <s...@rapi.com>.
Maybe you did not use the latest james sources,
in which this bug should be fixed.
(In the method getMessageSize() of the class
org.apache.james.core.MimeMessageSource
there are only FileInputStreams opened, but not closed.
At some time the operating system will say no to a request
to open 1 more FileInputStream, because there is some limit of
open file descriptors in every operating system).

Bye,

Stephan




Andrei Ivanov wrote:
> Hi,
> I performed some James load tests in very simple configuration: James acted
> as SMTP Gateway
> 
> 1. received e-mails
> 2. usual processing
> 3. remotely send e-mail (SMTP over ssl connection)
> 
> Size of e-mails was about 4K each. I had up to three clients "attacking"
> James and one GW which acted as listener on the other end.
> James was running on W2K, PIII650, 256MB RAM, Paging file 368M.
> 
> James crashed when number of request rate exceeded 30 requests / per second.
> Exception is below.
> 
> Regards, Andrei
> 
> java.io.FileNotFoundException:
> C:\DOCUME~1\aivanov\LOCALS~1\Temp\Mail1022743442819-16253054.m64
> (Insufficient
> system resources exist to complete the requested service)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(Unknown Source)
>         at java.io.FileInputStream.<init>(Unknown Source)
>         at
> org.apache.james.core.MimeMessageInputStreamSource.getInputStream(MimeMessag
> eInputStreamSource.java
> :63)
>         at
> org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:152
> )
>         at org.apache.james.core.MailImpl.writeMessageTo(MailImpl.java:216)
>         at
> org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
> ory.java:196)
>         at org.apache.james.James.sendMail(James.java:274)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invo
> ke(BlockInvocationHandl
> er.java:91)
>         at $Proxy9.sendMail(Unknown Source)
>         at
> org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:615)
>         at
> org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:248)
>         at
> org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:16
> 3)
>         at
> org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connect
> ion.java:169)
>         at
> org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
> eRunnable.java:47)
>         at
> org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
> 0)
> java.lang.RuntimeException: Exception caught while storing a stream :
> java.io.FileNotFoundException:
> C:\TEMP\phoenix-bin\apps\James\var\mail\spool\4D61696C3130323237343334343433
> 30312D31363337.R
> epository0.FileStreamStore (Insufficient system resources exist to complete
> the requested service)
>         at
> org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Stream_Repo
> sitory.put(File_Persist
> ent_Stream_Repository.java:108)
>         at
> org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
> ory.java:195)
>         at org.apache.james.James.sendMail(James.java:274)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invo
> ke(BlockInvocationHandl
> er.java:91)
>         at $Proxy9.sendMail(Unknown Source)
>         at
> org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:615)
>         at
> org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:248)
>         at
> org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:16
> 3)
>         at
> org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connect
> ion.java:169)
>         at
> org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
> eRunnable.java:47)
>         at
> org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
> 0)
> javax.mail.MessagingException: Exception spooling message: Exception caught
> while storing Message Container: j
> ava.io.FileNotFoundException:
> C:\DOCUME~1\aivanov\LOCALS~1\Temp\Mail1022743442819-16253054.m64
> (Insufficient s
> ystem resources exist to complete the requested service);
>   nested exception is:
>         java.lang.RuntimeException: Exception caught while storing Message
> Container: java.io.FileNotFoundExce
> ption: C:\DOCUME~1\aivanov\LOCALS~1\Temp\Mail1022743442819-16253054.m64
> (Insufficient system resources exist t
> o complete the requested service)
>         at org.apache.james.James.sendMail(James.java:280)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invo
> ke(BlockInvocationHandl
> er.java:91)
>         at $Proxy9.sendMail(Unknown Source)
>         at
> org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:615)
>         at
> org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:248)
>         at
> org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:16
> 3)
>         at
> org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connect
> ion.java:169)
>         at
> org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
> eRunnable.java:47)
>         at
> org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
> 0)
> javax.mail.MessagingException: Exception spooling message: Exception caught
> while storing Message Container: j
> ava.lang.RuntimeException: Exception caught while storing a stream :
> java.io.FileNotFoundException:
> C:\TEMP\phoenix-bin\apps\James\var\mail\spool\4D61696C3130323237343334343433
> 30312D31363337.Re
> pository0.FileStreamStore (Insufficient system resources exist to complete
> the requested service);
>   nested exception is:
>         java.lang.RuntimeException: Exception caught while storing Message
> Container: java.lang.RuntimeExcepti
> on: Exception caught while storing a stream : java.io.FileNotFoundException:
> C:\TEMP\phoenix-bin\app
> s\James\var\mail\spool\4D61696C313032323734333434343330312D31363337.Reposito
> ry0.FileStreamSto
> re (Insufficient system resources exist to complete the requested service)
>         at org.apache.james.James.sendMail(James.java:280)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invo
> ke(BlockInvocationHandl
> er.java:91)
>         at $Proxy9.sendMail(Unknown Source)
>         at
> org.apache.james.smtpserver.SMTPHandler.doDATA(SMTPHandler.java:615)
>         at
> org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:248)
>         at
> org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:16
> 3)
>         at
> org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connect
> ion.java:169)
>         at
> org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
> eRunnable.java:47)
>         at
> org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
> 0)
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>