OutOfMemory

Description

I see this problem in this forum but can't resolve this I try get a query that return a large result I have this code

protected String go() throws HibernateException {
List data;
Criteria c;
try {
c = super.getSession().createCriteria(BeanData.class);
c.add(Expression.eq("especie", "vulgaris"));
c.setFetchSize(1024);
data = c.list();
set("item",String.valueOf(data.size()));
set("resultados",data);
} catch (HibernateException e) {
e.printStackTrace();
return ERROR;
}
return SUCCESS;
}

and when try execute this action I receive the java lang OutOfMemory this query return 30000 object at least.

Can tell whats wrong i read that this is not a bug and it selve with setFetchSize but the result is the same.

Note: Excuse my english I'am from south america.

Thaks

Environment

None

Assignee

Unassigned

Reporter

Danny Mauricio Montero V

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Configure