You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark <se...@yahoo.com> on 2005/01/28 17:24:55 UTC

javaMail performance in tomcat

Hi,

My servlet sends an email using Authentication to mail server.

It took 400ms to send one small ( 3K text )e-mail. Does anybody know
if it fast enough for 3MB/800Kb network ? Is there any way to make it faster?


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: javaMail performance in tomcat

Posted by Mark <se...@yahoo.com>.
in this case you'll get out of your servlet faster - but it still
ddesn't answer about is 400ms for email to be send is a good value.

--- xand <xa...@xand.ws> wrote:

> What I do normally is start a separate Thread called
> MailSenderWorker, 
> this object is the responsible for sending emails. You lose some
> control 
> over the process (suppose that peer was unreacheable (bad address,
> for 
> example), you will not be able to show an error message to your
> client. 
> But when this is not so critical it is the fastest way to send an
> email 
> message.
> 
> Mark wrote:
> 
> >Hi,
> >
> >My servlet sends an email using Authentication to mail server.
> >
> >It took 400ms to send one small ( 3K text )e-mail. Does anybody
> know
> >if it fast enough for 3MB/800Kb network ? Is there any way to make
> it faster?
> >
> >
> >		
> >__________________________________ 
> >Do you Yahoo!? 
> >Yahoo! Mail - 250MB free storage. Do more. Manage less. 
> >http://info.mail.yahoo.com/mail_250
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> >
> >
> >  
> >
> 
> 
> -- 
> xand
> mailto: xand@xand.ws
> http://xand.ws
> ICQ: 104439346
> MSMSN: xchingizx@hotmail.com
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: javaMail performance in tomcat

Posted by xand <xa...@xand.ws>.
What I do normally is start a separate Thread called MailSenderWorker, 
this object is the responsible for sending emails. You lose some control 
over the process (suppose that peer was unreacheable (bad address, for 
example), you will not be able to show an error message to your client. 
But when this is not so critical it is the fastest way to send an email 
message.

Mark wrote:

>Hi,
>
>My servlet sends an email using Authentication to mail server.
>
>It took 400ms to send one small ( 3K text )e-mail. Does anybody know
>if it fast enough for 3MB/800Kb network ? Is there any way to make it faster?
>
>
>		
>__________________________________ 
>Do you Yahoo!? 
>Yahoo! Mail - 250MB free storage. Do more. Manage less. 
>http://info.mail.yahoo.com/mail_250
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>


-- 
xand
mailto: xand@xand.ws
http://xand.ws
ICQ: 104439346
MSMSN: xchingizx@hotmail.com



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org