myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ernst Fastl" <ernst.fa...@gmail.com>
Subject Re: JSF dropdown results in Out Of Memory
Date Thu, 25 Oct 2007 21:48:56 GMT
Try adding for instance -Xmx 1024 to your Servlet container Java startup options
in order to allow your JVM to allocate more memory.

btw. do you really have 14.000 entries in one dropdown?

could you  use a pageable datatable instead and fetch only
parts of those 14.000 at a time?

cheers

Ernst

On 10/25/07, bansi <mail2bansi@yahoo.com> wrote:
>
> Hi Andrew
>
> I have an situation, where the dropdown on JSF page gets populated with
> 14,171 records from database using Hibernate Named Query.
>
> Accessing the page very first time works well & the dropdown gets populated
>
>
>
> Subsequent accessing the page calls JSF action method reset , which reset
> the dropdown i.e. addrBlkSelectItems = null so that it gets populated fresh
> from the database. But it results in
>
> java.lang.OutOfMemoryError: Java heap space
>
>
>
> Not sure what i am doing wrong
>
>
> Any pointers/suggestions will be highly appreciated
>
>
>
> Regards
>
> Bansi
>
> --
> View this message in context: http://www.nabble.com/JSF-dropdown-results-in-Out-Of-Memory-tf4693846.html#a13416630
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message