Budget: 80 USD Deadline: 1 day
Good afternoon, I have experience in development with Next.js and deployment on a server. Most likely, the problem is in the programmatically limited memory allocated for Next.
сайт statis.kz около 400000 товаров, но 50 заходов в день, сайт периодически падает
надо выявить проблему и устранить ее, возможно проблема в коде
vps -
CPU
12 vCPU Cores
RAM
48 GB RAM
Storage
250 GB NVMe
Вот последний лог ошибок
:/var/www# docker logs nextjs_store
▲ Next.js 15.1.2
- Local: http://7f2b61ab12b7:3000
- Network: http://7f2b61ab12b7:3000
<--- Last few GCs --->
[1:0x724a560f3020] 112172000 ms: Mark-sweep 3985.6 (4133.5) -> 3968.7 (4134.0) MB, 5675.7 / 0.4 ms (average mu = 0.136, current mu = 0.026) allocation failure; scavenge might not succeed
[1:0x724a560f3020] 112177401 ms: Mark-sweep 3985.0 (4134.0) -> 3971.1 (4136.0) MB, 5257.8 / 0.4 ms (average mu = 0.086, current mu = 0.026) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Budget: 80 USD Deadline: 1 day
Good afternoon, I have experience in development with Next.js and deployment on a server. Most likely, the problem is in the programmatically limited memory allocated for Next.
Budget: 200 USD Deadline: 7 days
Hello. I have extensive experience with Next.js. Ready to collaborate
Budget: 25 USD Deadline: 10 days
Hi, I can look at the code, I have experience with testers, Docker, and generally with Next
Budget: 100 USD Deadline: 2 days
Good afternoon.
I have experience, ready to help.
Send the code - we will cooperate.
Budget: 100 USD Deadline: 1 day
I have experience optimizing Next.js/Node.js applications in production environments. In similar projects:
Identified bottlenecks in performance: memory leaks, long GC pauses.
Configured Docker containers with resource limits (--max-old-space-size for Node.js).
Conducted code audits and third-party libraries (e.g., overly "heavy" SSR, uncleared caches, improperly implemented render cycles).
Used monitoring tools (Node.js Profiler, clinic.js, pm2, top, docker stats) for resource consumption analysis.
Implemented caching optimizations, lazy loading, pagination for large databases (>100,000 products).
Budget: 50 USD Deadline: 5 days
Hello, I would like to review the code to identify the cause of the error, most likely optimization is missing. We will agree on the time and price.
Budget: 100 USD Deadline: 2 days
Hello
I can help fix the problem
The problem is not with the server but with the code or the site is allocated too little RAM (if anything, I'm not talking about the small amount of RAM on the server but about how much RAM the server will allocate for the site)
Write to me in private messages and I will help you
Budget: 300 USD Deadline: 2 days
Hello Ablay,
I’ve reviewed the logs from your Next.js application, and the issue is clear:
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Your VPS has excellent resources (12 vCPUs, 48GB RAM), so the problem is likely inside the code — not the server.
What I’ll Do:
Identify the memory leak or heavy operations causing the crash
Profile and optimize data fetching, especially if product pages load massive datasets
Ensure SSR/SSG logic is efficient (getStaticProps, getServerSideProps, or API routes)
Fix any full-page rendering of 400K+ products (pagination, lazy loading if missing)
Improve Docker and Node settings (--max-old-space-size, production flags)
Add performance logging and health monitoring
Deliverables:
Stable Next.js build (no memory crashes)
Improved product listing and rendering logic
Clean, optimized data flow (products, categories, filters)
Suggestions or fixes to avoid future bottlenecks
I've handled similar high-product-volume eCommerce apps and backend-heavy projects in Next.js + PostgreSQL/Mongo stacks and can confidently resolve this.
Please share access to your repo or Docker setup, and I can begin the diagnostics and repair.
Best regards,
Georgios Toutoudakis
HTML & CSS 64 proposals 4 August
Cryptocurrency & Blockchain 24 proposals 1 August
Web Programming 68 proposals 29 July
HTML & CSS 17 proposals 23 July