Redian新闻
>
[转载] smtp server in java?
avatar
[转载] smtp server in java?# Java - 爪哇娇娃
c*t
1
【 以下文字转载自 Programming 讨论区 】
【 原文由 coldstart 所发表 】
My program:
Using thread for each connention.
Using BufferedInputStream and BufferedReader to get message from client.
Using readLine() to get each line from client.
Problem:
When there are attachments coming in. SMTP server receive them very slowly.
If I increase the buffer size, that will be fine for one email with big
attachment.
But don't work on a lot of email coming in at once. The error is Outofmemory.
What shall I do to increase the speed
avatar
c*t
2
发现开了100M buffer, 对100K的附件处理的很快了,
但如果附件有500K,还是很慢,要4分钟. 不知什么原因?

【在 c*******t 的大作中提到】
: 【 以下文字转载自 Programming 讨论区 】
: 【 原文由 coldstart 所发表 】
: My program:
: Using thread for each connention.
: Using BufferedInputStream and BufferedReader to get message from client.
: Using readLine() to get each line from client.
: Problem:
: When there are attachments coming in. SMTP server receive them very slowly.
: If I increase the buffer size, that will be fine for one email with big
: attachment.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。