Re: [nodejs] How to find out *if* there is a memory leak?

2012-11-20 Thread Stefan Zehe
Am 19.11.2012 16:41, schrieb Ben Noordhuis: Keep an eye on RSS. If your application is at equilibrium but RSS keeps growing indefinitely, chances are good there is a memory leak. Is js-code responsible for RSS memory leaks or only for the heap-growing ones? if both are js-code-caused, can

[nodejs] http redirect and slow connection 2nd time

2012-11-20 Thread Angelo Chen
Hi, Got a very simple http server with following code: res.writeHead(302, {'Location': 'http://sample.com/}) res.end() now do a : curl -i -v http://ip_goes_here:9090/test it returns: * Connected to ... port 9090 (#0) GET /test HTTP/1.1 User-Agent: curl/7.26.0 Host: ...:9090 Accept: */*

Re: [nodejs] Implement Password Reset in Node.js

2012-11-20 Thread Tauren Mills
The pass-reset module was developed to support our use cases: 1. User enters a username such as tomsmith. Only one user may have this username, so the email that is sent includes only a single code. 2. User enters an email address. Our service allows multiple users to be created with the same

Re: [nodejs] Does node require a lot of RAM

2012-11-20 Thread Tim Caswell
Node uses a lot depending on what that means. Besides the actual amount of buffer data you app logic keeps in ram, node itself uses about 10Mb overhead for the bare process. Also the GC is optimized more for speed than memeory usage. It doesn't really start freeing till it feels memory

Re: [nodejs] Re: find path of module require()ing

2012-11-20 Thread Bradley Meck
Depends, if a module holds a reference to the module being reloaded and there is a shared cache being used by that module. You would still end up with 2 references to different things. I would need to know way more about whats trying to be done / API to make any sane comment on if it looks like

[nodejs] [ANN] Timer-shim - Test-friendly timer function replacements.

2012-11-20 Thread chakrit
# TIMER-SHIM All problems in computer science can be solved by another level of indirection TIMER-SHIM is a simple wrapper around standard timer functions which allows you to stub / test / fake their call and timing function without resorting to tricky global setTimeout/setInterval

Re: [nodejs] Does node require a lot of RAM

2012-11-20 Thread Jeff Barczewski
Node.js, which is an evented server, is more efficient at handling multiple concurrent connections than a multi-threaded or multi-process server. There would be more overhead incurred for each and every thread or process using other technologies than with an evented server like Node.js.

Re: [nodejs] Implement Password Reset in Node.js

2012-11-20 Thread Ryan Schmidt
On Nov 20, 2012, at 04:54, Tauren Mills tau...@tauren.com wrote: The pass-reset module was developed to support our use cases: 1. User enters a username such as tomsmith. Only one user may have this username, so the email that is sent includes only a single code. 2. User enters an email

[nodejs] How to running node.js

2012-11-20 Thread Jerry
I have install node.js v0.8.4 on Redhat, however, I use node server.js, there is no any output in terminal. server.js. console.log('hello'); however, if I input only node instead of node server.js, then input console.log(hello);, it will output in command line, What's the reason. Thanks! --

[nodejs] Announcing our game server framework--pomelo. Feedback please!

2012-11-20 Thread Charlie Circle
Hi everyone: We are glad to announce our open source game server framework in node.js:pomelo. It's a fast, scalable, distributed game server framework for node.js. We'v been working on it for almost one year, and now is the time for exposure. Here is some features of pomelo: High scalable

Re: [nodejs] How to running node.js

2012-11-20 Thread Ryan Schmidt
On Nov 20, 2012, at 21:37, Jerry oylje...@gmail.com wrote: I have install node.js v0.8.4 on Redhat, however, I use node server.js, there is no any output in terminal. server.js. console.log('hello'); however, if I input only node instead of node server.js, then input