I'm not really sure what is the point of running the code... it doesn't
demonstrate anything... get a profiling tool to profile what's causing
the problems or write code to isolate what the problem is.  I've always
found file uploading to be extremely slow, but again, you have several
different libraries (web server, file upload component, javamail,
looping through body parts, etc...) that make it impossible to determine
the problem using a single number.

Serge

Dino Fancellu wrote:
> 
> Have you actually tried running the code I sent?
> 
> I just want to see what others get if they try to upload a 1.5 meg file.
> 
> The web server is the same for both my upload function and using javax.mail.
> 
> The question is, why is it so dog slow for me? Do others get this?
> 
> The input stream is coming from a HTTP servlet, inside doPost(), from a jsp
> file, which I sent.
> 
> Dino.
> 
> > I'm not sure if it's a function of the parsing of the multi part request
> > or what, but I haven't noticed any noticeable slowness in javax.mail
> > package.  I use an old version of JAMES on our web/mail server (a x86
> > 400mhz I think), and we had a 19 meg email come through... it wasn't
> > instantaneous, but it was certainly much less than a minute to deliver.
> > I can't tell where your input stream is coming from.... and you have 14
> > other things going on aside from MimeMessage getting constructed... (web
> > server processing multipart request, reading all the parts and dumping
> > those out, the uninformative processRequest(request, response)
> > method...), so I have to say this isn't very conclusive.  Federico
> > talked about rebuilding the mail API, but there's so much logic involved
> > in handling email messages, it seems like our very limited time is
> > better spent on other parts of the system.  And like I started, I
> > haven't seen any performance problems with javamail... it's a memory
> > hog, but that's another story.
> >
> > Serge Knystautas
> > Loki Technologies
> > http://www.lokitech.com/


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to