NodeJS: debugging memory use
I've got a web crawler that is eating up a bunch of memory. I've tried
node --trace-gc as posted in "NodeJS 0.3.1 app leaking memory" and the problem is similar. I am using the async lib for multiple gets to the server.
Can someone point me in the right direction to find the leak? Any good tools or methods that i could use?
I have an Apache-Server running my PHP-Application on Port 80. The PHP-Application communicates with the NodeJS-Server (socket.io) over Port 3000. Due to firewall restrictions, I should only use Port
I am reading about various IPC mechanism. I am trying to figure out the scenarios, where we use Shared Memory and where we use named Pipes(FIFO). Pipes: Multiple process can Write, however only one pr
I want to know, suppose I am debugging a code and at any point I allocated some memory and break point hits for example: 1: Statement to allocate 1 MB memory in **C**. 2: Any other statement where **B
I have plenty of experience debugging .NET applications using the Visual Studio debugger. I also have experience using WinDBG to successfully identify and resolve memory leaks. I don't have any experi
I have been reading up a little on the source for Connect and Express of how session is managed. I am still learning the basics on sessions but I do not understand how the memory is handled. I know t
Is there any good tool that helps with troubleshooting and debugging memory leaks in Internet Explorer?
I am using async in a Nodejs application to run a series of functions in series. Each function calls the callback with an err (Can be null) and a result. What I want to do is check in the series call
I was debugging a problem mentioned in a few other* questions on SO and noticed a strange behavior during the debugging process. The behavior: Experienced 'out of memory' error while pasting complex f
I am trying to find the origin of a nasty memory leak in a Python/NumPy program using C/Cython extensions and multiprocessing. Each subprocess processes a list of images, and for each of them sends th
[Python 3.1] My program takes a long time to run just because of the pickle.load method on a huge data structure. This makes debugging very annoying and time-consuming: every time I make a small chang
I would like to connect to an in-memory HSQL database instance using the hsql DatabaseManager (or the swing version, it doesn't matter) while debugging tests in my IDE (Intellij IDEA 11.1.2). I have t
I have not find any tutorial about using xcode's Fix and Continue feature. If someone knows how to use this please let me know. I would like to use this feature in iOs Apps. Does some knows a way to
Let's say I have my.js file that has dependency on nodejs fs module. Like: var fs = require('fs'); The question: How can I load Core NodeJS module like FS in My Mozilla Rhino Java Code to be able t
I have a full memory dump but in this instance I don't have a user stack trace database to go with it, I have up to date symbols and the original binaries that go with the dump, normally, I've been ab
I want to use shared memory between kernel call of one kernel. Can I use shared memory between kernel call?
In PHP to filter inputs data I use functions htmlspecialchars and mysql_real_escape_string. Is there any functions like this in nodejs? I need to check all inputs in my rounter functions to prevent ha
using MAMP v2.0 on Mac __ Apache/2.0.64 (Unix) -- PHP/5.3.5 -- DAV/2 mod_ssl/2.0.64 -- OpenSSL/0.9.7l -- MySQL 5.5.9 I have a script I am trying to run and It appears to be giving me major memory leak
I recently stumbled upon a memory leak in my Node.js application after migrating from MongoDB to Postgresql. The code runs on Node.js v 0.10.x. The code and its dependencies are 100% written in JS. I'
Does NodeJS has any functionality for accepting input via standard input from a user. In Browser based JS we used to use 'prompt' functionality for same but the this would not work on NodeJS standalon
I was asked this question in an interview- how much memory does a function use?. So I tried to answer by saying you could add up all the memory taken by all the data variables , data structures it i
I´m coming from a PHP background where my debugging tools are basically echo, var_dump and exit. While I know the importance of debugging, I never tried to use/learn a debugging tool. Now I´m learni
What is more efficient - nodejs buffers or typed arrays? What should I use for better performance? I think that only those who know interiors of V8 and NodeJs could answer this question.
To me classes are quite similar to NodeJS (CommonJS) modules. You can have many of them, they can be reused, they can use each other and they are generally one-per-file. What makes modules so differen
Just the question stated, how can I use mmap() to allocate a memory in heap? This is my only option because malloc() is not a reentrant function.
Is there a way to use PhantomJS to scrape the data then parse the results with nodejs XPath and DOM then save into MySQL? I've installed both PhantomJS core and also PhantomJS Node module but trying t
I have a client with a Wordpress site. They are running a couple of plugins which are causing Fatal Memory errors. The 2 plugins specifically are Simple Map & Drain Hole.I am not sure which of the
I try, unsuccessfully, to find an equivalent in NodeJS of PHP GD function imagecopyresampled. This is not simply resize an image, but get a portion of an image and then put it into another image. I f
I am new to NodeJs and Express Js. And I am looking for pagination module that will be useful for ajax as well as listing records of Mysql Database.
Currently I debug my C# application locally and use watch, breakpoint and commands like step into and the debug inspector. setup remote debugging with another machine as described here: http://msdn.mi
I have some C++ services running on server and a node server program listening to a specific port. Can I use shared memory between C++ services and nodejs program? I want users to send data through no
I would like to use the the node-bencoding package with my current RequireJS project setup, but I have been unable to get it configured. I have followed these instructions and have ran: npm install r
I've been playing with OpenCL recently, and I'm able to write simple kernels that use only global memory. Now I'd like to start using local memory, but I can't seem to figure out how to use get_local_
I use Atlassian Bamboo for my PHP projects and I find it extremelly useful, NodeJS is around since a while now and I'm really surprised that Bamboo does not support NodeJS out of the box. I read an ar
For one off my projects I need to import a very huge text file ( ~ 950MB ). I'm using Symfony2 & Doctrine 2 for my project. My problem is that I get errors like: Fatal error: Allowed memory size o
This question already has an answer here: What can cause segmentation faults in C++? [closed] 9 answers My question is whether linux kernel can use virtual memory or does it always uses fixed m
it posible use a nodejs package inside meteor app on server side? It would be great to do that since nodejs has a large number of packages.
This is a general debugging question. Often you find yourself debugging a particular method where the input types might be strong types. I am looking for a generic visual studio plugin that can save
how to use nodejs package in meteor app. i tried to install module in app directory it is showing error npm install skimlinksjs npm WARN package.json firstname.lastname@example.org No description npm WARN package.json no
My goal is to create a bitmap in memory and use its handle as a parameter of the BM_SETIMAGE message (a message that set a button's bitmap). The following is my code: ........ HDC hdc = GetDC(hwnd); H
I want to realize a simple client-server connection using Nodejs. But I've encountered with the following problem. Consider the code server.js: var net = require('net'), sys = require('sys'); net.crea
I was reading up on how to go about finding memory leaks with the C++ new operator and the standard CRT malloc function on a Win32 application. I added some stuff for working with windows sockets and
I have just installed the NodeJS plugin on Jenkins 1.526 https://wiki.jenkins-ci.org/display/JENKINS/NodeJS+Plugin but on the master configuration the NodeJS auto-installer does not show up, is this p
I use windows 7 x64 with intel cpu. which windbg works fine and should I use for debugging x86 apps ? and another similar question, I install windows XP x86 as vmware guest for kernel debugging.My hos
I have this Freebase query and need to use it in NodeJS + ExpressJS or NodeJS + Superagent. I tried Google API module and the Freebase module (that doesn't npm install!), but i'm very confuse about ho
How does MySQL use memory when doing select? Is it right that MySQL can only load the selected columns and won't waste any memory on the rest of the columns? e.g. I have a table with 1.article ID,
I've found a unit with functions that allow to Load a DLL directly from memory, but I don't know how can I use it.. This is the unit: http://www.delphibasics.info/home/delphibasicssnippets/udllfrommem
Due to recent events, i am trying to figure out how much debugging logs i should use for code in general. What i have been doing is using debugging logs pretty sparingly, and just in cases where i wan
I'm doing chat system with nodejs. To create a node server I can either do use net or http module. So what the different and bennefit for using each of them ?