aspose file tools*
The moose likes Struts and the fly likes Ajax Anywhere out of memory problem.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ajax Anywhere out of memory problem.... " Watch "Ajax Anywhere out of memory problem.... " New topic
Author

Ajax Anywhere out of memory problem....

rajanikanth bhagavan kanth
Ranch Hand

Joined: May 20, 2008
Posts: 78
Hi All,

I'm using ajax anywhere in my Struts Application.
Using this im loading the drop down lists using struts index pattern.
Here the drop down list contains 150 or more values.
After loading the page with ajax anywhere im submiting the form , Here I'm getting the out of memory error.Is this is the Ajax anywhere problem?
Because we are loading the dropdown lists with ajax anywhere[large data]
If i remove the ajax anywhere calls im not getting any errors.

Let me know If I'm not clear.

Thanks in advance
Regards
Bhagavan Rajanikanth
rajanikanth bhagavan kanth
Ranch Hand

Joined: May 20, 2008
Posts: 78
reply please
rajanikanth bhagavan kanth
Ranch Hand

Joined: May 20, 2008
Posts: 78
Can any one give me suggetions on this please
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You haven't given enough information to provide any feedback.
rajanikanth bhagavan kanth
Ranch Hand

Joined: May 20, 2008
Posts: 78
can you please tell me what type of information you required for this issue?

Please let me know if im not clear

Regards
Bhagavan
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Providing more information about where the OOM error is coming from would be the most helpful. It would also be a useful diagnostic to know if you get the same OOM error if you request the page directly (as opposed to via Ajax).
rajanikanth bhagavan kanth
Ranch Hand

Joined: May 20, 2008
Posts: 78
Hi,
In my application i have to load the all the employees of organization in dropdown list.So it is loading almost all 10000's of data in dropdownlist.At the time of loading its throwing like out of memory.This employee list is populated i.e loaded when i select department type from other dropdown list.For this i used the ajax call.If i remove the ajax call and submited the entair form im not getting any errors succesfully im able to load the dropdown list.My doubt is that ajax will not support huge data?

Let me know if im not clear.

Regards,
Bhagavan R
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Let me know if im not clear.

You are not clear.

First of all, loading 10,000 elements into a drop-down list is a Really Bad Idea--it's essentially unusable.

Second of all, you're still not saying anything about the nature of the OOM error. Is it the server that's giving the error? If so--increaase the memory allocated to your application. If you're getting the results from the database and mapping them into an ORM layer, like Hibernate, then see if you can restrict the data being retrieved from the database.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ajax Anywhere out of memory problem....