Correct me if I'm wrong, but Velocity doesn't stream it's output until the whole template has been satisfied. Therefore, if you are creating a very large response with a template, then it builds the whole response in memory before sending it out. Therefore, it doesn't matter what you set your VM memory constraints to, you will always stand a chance of exhausting the memory.
Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Will Glass-Husain Sent: 10 September 2006 22:54 To: Velocity Users List; [EMAIL PROTECTED] Subject: Re: memory problem with display table export options Sreidar, Are you sure you are referring to Velocity? I'm familiar with the open source Display Table tag library, but not with anything in Velocity of that name... WILL On 9/8/06, Alexey Panchenko <[EMAIL PROTECTED]> wrote: > sreidhar kanaparthy wrote: > > > I am using th display table to list the number of users in my application. > > Export is working fine when there is less data, but when it reaches more > > than 50,000 users , almost all types of > > exports throwing the exceptions like heap exception or unable to export . > > I am expecting the application to scale to support upto atleast a million > > users. > > > Any suggestion to solve this problem is of great help > > 1. Allow JVM to use more memory - e.g. add "-Xmx256Ì" to the java > command line starting your application. > > 2. Use profiler to track memory usage and optimize it in your > application. > > How do you use velocity? Why do you think that velocity is the most > involved part in your memory usage? > > -- > Best regards, > Alexey mailto:[EMAIL PROTECTED] -- Forio Business Simulations Will Glass-Husain [EMAIL PROTECTED] www.forio.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]