Posted By:
sabu_vs
Posted On:
Thursday, September 26, 2002 10:07 PM
Hi I have a JSP/servlet program that accepts user input and send mail messages with the user info as attched PDF files. A mail can contain up to 5 pdf's and ther size is about 500 kb. The PDF's are dynamically created. ie. Contents[pdf files] are converted to bytearray stream and attached to the mail. The program works fine, But it gives out of memory error. I found an article from IBM website that The "Memory Error can be caused due to the unused elements in the Vector Or HaashTable so the elements should be removed after it's use". I did it accordingly But I am getting this error again. I suspect that suppose if 10 persons are using the program 10 mails are being sent with pdf's. If mailin
More>>
Hi
I have a JSP/servlet program that accepts user input and send mail messages with the user info as attched PDF files. A mail can contain up to 5 pdf's and ther size is about 500 kb. The PDF's are dynamically created. ie. Contents[pdf files] are converted to bytearray stream and attached to the mail.
The program works fine, But it gives out of memory error. I found an article from IBM website that The "Memory Error can be caused due to the unused elements in the Vector Or HaashTable so the elements should be removed after it's use".
I did it accordingly But I am getting this error again. I suspect that suppose if 10 persons are using the program
10 mails are being sent with pdf's. If mailing occurs at the same time ; there should be 10 objects occupying large amount of memory.
I donot know whether my doubt is true. If true what is the solution? Could any one help me to solve my problem with a good solution?
thanks for your valuable time
sabu
<<Less