# JavaScript heap out of memory on importing {ZoomMtg} from '@zoomus/websdk'

**URL:** <https://devforum.zoom.us/t/javascript-heap-out-of-memory-on-importing-zoommtg-from-zoomus-websdk/71028>\
**Category:** Meeting SDK\
**Tags:** web-meeting-sdk\
**Created:** [June 23, 2022, 7:00pm UTC](https://devforum.zoom.us/t/javascript-heap-out-of-memory-on-importing-zoommtg-from-zoomus-websdk/71028 "2022-06-23T19:00:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akarshtripathi03](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/akarshtripathi03/32/38759_2.png) [@akarshtripathi03](https://devforum.zoom.us/u/akarshtripathi03)\
**Post date:** [June 23, 2022, 7:00pm UTC](https://devforum.zoom.us/t/javascript-heap-out-of-memory-on-importing-zoommtg-from-zoomus-websdk/71028/1 "2022-06-23T19:00:51Z")

</div>

```auto
<--- Last few GCs --->

[7776:00000253E3251760] 241965 ms: Mark-sweep (reduce) 2043.5 (2051.1) -> 2043.1 (2054.4) MB, 2199.7 / 0.1 ms (average mu = 0.123, current mu = 0.005) allocation failure scavenge might not succeed
[7776:00000253E3251760] 243808 ms: Mark-sweep (reduce) 2044.2 (2054.9) -> 2043.8 (2055.4) MB, 1838.4 / 0.1 ms (average mu = 0.071, current mu = 0.003) allocation failure scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 00007FF7C0F0046F napi_wrap+109311
 2: 00007FF7C0EA5156 v8::internal::OrderedHashTable<v8::internal::OrderedHashMap,2>::NumberOfElementsOffset+33302
 3: 00007FF7C0EA5F26 node::OnFatalError+294
 4: 00007FF7C1772B4E v8::Isolate::ReportExternalAllocationLimitReached+94
 5: 00007FF7C175792D v8::SharedArrayBuffer::Externalize+781
 6: 00007FF7C1601CCC v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1516
 7: 00007FF7C160D04A v8::internal::Heap::ProtectUnprotectedMemoryChunks+1258
 8: 00007FF7C160A1F9 v8::internal::Heap::PageFlagsAreConsistent+2457
 9: 00007FF7C15FEDE1 v8::internal::Heap::CollectGarbage+2033
10: 00007FF7C15FD005 v8::internal::Heap::AllocateExternalBackingStore+1317
11: 00007FF7C161D2A7 v8::internal::Factory::NewFillerObject+183
12: 00007FF7C134CC31 v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+1409
13: 00007FF7C17FB50D v8::internal::SetupIsolateDelegate::SetupHeap+463949
14: 00007FF7C17FC3BD v8::internal::SetupIsolateDelegate::SetupHeap+467709
15: 00007FF7C184C07B v8::internal::SetupIsolateDelegate::SetupHeap+794555
16: 00007FF7C17EC302 v8::internal::SetupIsolateDelegate::SetupHeap+401986
17: 000002F07CE51020

```

On running my react app using `npm start` the development server crashes with the above error.  
This however is not the case with Component View which runs perfectly fine.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 23, 2022, 1:08pm UTC](https://devforum.zoom.us/t/javascript-heap-out-of-memory-on-importing-zoommtg-from-zoomus-websdk/71028/2 "2022-12-23T13:08:54Z")

</div>

Welcome, @akarshtripathi03,

Thank you for posting in the Zoom Developer Forum. In order to best support you, can you share the following details :

**Description**

A clear and concise description of what the question is.

**Browser Console Error**

The full error message or issue you are running into.

**Which Web Meeting SDK version?**

Knowing the version can help us to identify your issue faster. [e.g. 1.9.9]

**Meeting SDK Code Snippets**

The code snippets that are causing the error / issue so we can reproduce.

**To Reproduce(If applicable)**

Steps to reproduce the behavior:

1. Go to ‘…’

2. Click on ‘…’

3. Scroll down to ‘…’

4. See error

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Device (please complete the following information):**

- Device: [e.g. Macbook Pro]

- OS: [e.g. macOS 11]

- Browser: [e.g. Chrome]

- Browser Version [e.g. 88.0.4324.150 (Official Build) (x86\_64)]

**Additional context**

Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [December 24, 2022, 5:28pm UTC](https://devforum.zoom.us/t/javascript-heap-out-of-memory-on-importing-zoommtg-from-zoomus-websdk/71028/3 "2022-12-24T17:28:14Z")

</div>

@akarshtripathi03 Please watch [here](https://youtube.com/playlist?list=PLtCPInQA1B7vBAtYCBQzUFfq7B8DpMDio) all the WebSDK Integrations

- Zoom Meeting SDK Integration with VueJS
- Zoom Meeting SDK Integration with ReactJS
- Zoom Meeting SDK Integration with AngularJS
