# Out of memory error if I load multiple GeoJSON

**URL:** <https://community.cesium.com/t/out-of-memory-error-if-i-load-multiple-geojson/6823>\
**Category:** CesiumJS\
**Created:** [April 24, 2018, 4:49am UTC](https://community.cesium.com/t/out-of-memory-error-if-i-load-multiple-geojson/6823 "2018-04-24T04:49:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SCK](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@SCK](https://community.cesium.com/u/SCK)\
**Post date:** [April 24, 2018, 4:49am UTC](https://community.cesium.com/t/out-of-memory-error-if-i-load-multiple-geojson/6823/1 "2018-04-24T04:49:19Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

When I load multiple GeoJSON vector layers, each of 23 MB size, the webapp hangs and throws out OutOfMemory error.

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.**

//Load data - From toposheets  
Cesium.GeoJsonDataSource.clampToGround = true;

var dataSource = Cesium.GeoJsonDataSource.load(’…/GeoJSON/Topo1.geojson’);  
viewer.dataSources.add(dataSource);

var dataSource2 = Cesium.GeoJsonDataSource.load(’…/GeoJSON/Topo2.geojson’);  
viewer.dataSources.add(dataSource2);

**3. Context. Why do you need to do this? We might know a better way to accomplish your goal.**

I want to load multiple Point/Polygon vector layers

**4. The Cesium version you’re using, your operating system and browser.**

1.42

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [April 25, 2018, 2:06pm UTC](https://community.cesium.com/t/out-of-memory-error-if-i-load-multiple-geojson/6823/2 "2018-04-25T14:06:28Z")

</div>

Loading a lot of data at once can cause a lot of performance issues. We are working on a [pipeline to convert geoJson data into 3D Tiles](https://groups.google.com/forum/#!topic/cesium-dev/tCCooBxpZFU%5B1-25%5D), which is a format designed to perform much more efficiently. To [work with us to convert your data](https://cesium.com/collaborate-with-us/), contact [tim@agi.com](mailto:tim@agi.com).

Thanks!

Gabby
