Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

v8

How to get Current and accurate Memory Usage of k8s Pod running Node JS application

October 13, 2022 by Magenaut

I have a NodeJS application running on a k8s pod. The actual size of the pod is 2GB, but in environment variables, we set this value to 4GB --max-old-space-size=4096 (which will not be true in my case – for some tenants we do allocate 4GB but most pods have 2GB).

Categories Node.js, Q&A Tags heap-memory, kubernetes, memory, node.js, v8 Leave a comment

For what purpose is _pthread_cond_timedwait function used in v8?

October 12, 2022 by Magenaut

In the profiling logs of chrome (–prof) option with a webpage, a majority of ticks is consumed by _pthread_cond_timedwait function in C++.

Categories Node.js, Q&A Tags chromium, node.js, performance, v8 Leave a comment

How does the V8 toString(radix) method in Google Chrome or in Node.js handle floating point numbers?

October 9, 2022 by Magenaut

The method works clearly with integer numbers, e.g.

Categories Node.js, Q&A Tags javascript, node.js, v8 Leave a comment

On-Stack-Replacement in V8

October 9, 2022 by Magenaut

OSR optimization will be triggered when a loop is executed enough times. Marking and triggering an optimization task will occur in JumpLoop handler. Two questions about OSR in V8:

Categories Node.js, Q&A Tags javascript, node.js, v8 Leave a comment

Concurrency optimization job in V8

October 9, 2022 by Magenaut

When concurrency optimization is triggered, a new optimization job will be dispatched to a child-thread to complete.

Categories Node.js, Q&A Tags javascript, node.js, v8 Leave a comment

What is Node.js?

October 9, 2022 by Magenaut

Web development in a dynamic language (JavaScript) on a VM that is incredibly fast (V8). It is much faster than Ruby, Python, or Perl.

Categories Node.js, Q&A Tags evented-io, javascript, node.js, v8 Leave a comment

Unknown events in nodejs/v8 flamegraph using perf_events

October 8, 2022 by Magenaut

I try to do some nodejs profiling using Linux perf_events as described by Brendan Gregg here.

Categories Node.js, Q&A Tags node.js, perf, performance, profiling, v8 Leave a comment

Why is bind slower than a closure?

October 8, 2022 by Magenaut

A previous poster asked Function.bind vs Closure in Javascript : how to choose?

Categories Node.js, Q&A Tags javascript, node.js, performance, v8 Leave a comment

ECMAScript 6 features available in Node.js 0.12

October 8, 2022 by Magenaut

A new stable release of Node.js (0.12) has landed recently with an upgraded Google’s v8 JavaScript engine, v3.28.73.

Categories Node.js, Q&A Tags ecmascript-6, javascript, node.js, v8 Leave a comment

Why is let slower than var in a for loop in nodejs?

October 8, 2022 by Magenaut

I have written a very simple benchmark:

Categories Node.js, Q&A Tags ecmascript-6, javascript, node.js, v8 Leave a comment
Post navigation
Older posts
Page1 Page2 … Page9 Next →

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress