Packaging problems with online npm run build for Jenkins deployment vue projects

1. When configuring the task through Jenkins, it is found that the npm rubm build does not work, prompting memory overflow, and this problem does not occur when packing locally.

 building for production...
<--- Last few GCs --->

[1937:0x2dd8280]    60244 ms: Scavenge 328.0 (390.7) -> 317.9 (390.7) MB, 3500.7 / 208.8 
ms  allocation failure 
[1937:0x2dd8280]    67144 ms: Scavenge 328.2 (390.7) -> 320.2 (390.7) MB, 1300.9 / 92.6 ms  
allocation failure 
[1937:0x2dd8280]    73744 ms: Scavenge 328.4 (390.7) -> 322.1 (390.7) MB, 6204.7 / 97.4 ms  
allocation failure 
[1937:0x2dd8280]    91644 ms: Scavenge 328.6 (390.7) -> 323.6 (375.2) MB, 3703.0 / 192.2 
ms  allocation failure 


<--- JS stacktrace --->

 ==== JS stack trace =========================================

Security context: 0xcc83a0a5ee1 <JSObject>
1: DoJoin(aka DoJoin) [native array.js:~95] [pc=0x187cb1786c59](this=0x1121a1e02311 <undefined>,p=0x65f50dffec1 <JSArray[10]>,q=10,E=0x1121a1e023b1 <true>,A=0xd210223d511 <String[1]: />,z=0x1121a1e02421 <false>)
2: Join(aka Join) [native array.js:~120] [pc=0x187cb13b1669](this=0x1121a1e02311 <undefined>,p=0x65f50dffec1 <JSArray[10]>,q=10,A=0xd210223d511 <String[1]: />,z=0x1121a1e02421 <fa...

FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory
1: node::Abort() [node]
2: 0x121a7ac [node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
5: v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, 
v8::GCCallbackFlags) [node]
6: v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace,             
v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
7: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [node]
8: v8::internal::Runtime_StringBuilderJoin(int, v8::internal::Object**, 
v8::internal::Isolate*) [node]
9: 0x187cb118463d



clipboard.png

Feb.28,2021

see if your server memory is too small

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf2444-31dd7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf2444-31dd7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?