I have an email receiving script which receives emails, creates a record for each email also creates history records for each attachments and save the physical attachments to a web server using http plugin (in conjunction with php - http post method)
I have around 400 mails in my mailbox. The mails are received through the servoy client. I am using windows xp with 1G ram. I was watching the Task Manager for the memory consumption. The Task Manager showed that the java process took around 130MB when I got this error message. I wonder why I get this error when I still have a lot of memory left. May be there are some settings which need to be set.
I have successfully received all the emails through the Servoy Developer. I guess it is because of the following settings I use to start the developer.
Still crashed and I just could not increase the heap size to a very high level. For most of the client computers it does not make any sense utilizing the whole computers memory.
So I used php to get around this problem. Now I use PEAR’s Net_POP3 class to receive the emails. It is fast and no memory issues.
To use the changed maxClientHeap setting you do need to re-download the client. Or you can edit the downloaded .jnlp file yourself since this is just an XML file.
Do make sure your webstart cache is empty.
So other users that already have downloaded the client with the old settings are still using that old setting.
Thanks for the tip. I can try that.
But what mail plugin does is, it retrieves all the messages at one time.
I think the plugin has to be modified so that it receives just the message list (not the actual message but just a unique id for each mails as an array). The n we can loop through that array and retrieve the actual message one at a time.
With this approach we can solve two issues:
1> the out of memory issue
2> we can show the user a better progression of what’s happening.
Currently the screen just goes complete frozen for around 15 mins when the plugin receives the emails