java - Out of Memory Exception while loading data into List -
I'm trying to generate a heatmap on a googlemap, about 2 million digits (latitude and longitude). My thoughts are to read the numbers from the table, and they have to give it to the Google API in the list. The problem is, loading the 2 million points in the list causes a memory error in EJB. The following is the line that gives me an error.
list & gt; Earthquake & gt; Earthquake risklist = em.createNativeQuery ("Select as geomette (geomia), in the form of risks, Earthcomcers E from Eidcom", Earthquarkarsk. Class). GetResultList (); What options can be applied to read and load points in the map? I have glassfish 3.2.2, JDK 1.7, JSF 2.2, ezb.
You can see:
In addition, Have you thought about implementing your own? After this you can recover the required data on demand when the itater completes the next stage.
Another option would be to split your dataset - like you want to score on the page.
Comments
Post a Comment