Exists many ways in which your server can be down. Most common are uncaught
exceptions.
Any way, you can use forever:
https://www.npmjs.org/package/forever
"A simple CLI tool for ensuring that a given node script runs continuously"
El martes, 15 de julio de 2014 02:50:43 UTC-5, tamizh arasan escribió:
>
> I am using node server for my mobile based web application. it stops
> responding after a certain time from starts working. but when i restart the
> server it works fine and again goes not responding state after certain
> period. I am continuously restarting my server every day to run my
> application. i don't what is the issue with it. My server is not connected
> more than 30 connection. It is in testing phase. and as well it didn't deal
> with big data transfer. i have used below api s for my application.
>
> var app = require('http').createServer(), // Creating
>> http server instance
>> io = require('socket.io').listen(app), // Creating Socket.io
>> instance
>> fs = require('fs'), //
>> http = require('http'), // Creating http instance
>> gm = require('googlemaps'), // Creating instance for nodejs googlemaps
>> mysql = require('mysql'), // Creating instance for mysql
>> API = require ('wechat').API, // Creating WeChat NodeJs Instance
>> connectionsArray = [], // Creating Connections Array instance
>> connection = mysql.createConnection({ // Creating Mysql Connection
>> instance
>> host: '127.0.0.1',
>> user: 'test',
>> password: ''
>> database: 'test',
>> port: 3306
>> });
>
>
> I am new to Node.js. Can anybody tell me how to resolve it.
>
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/d25fab36-178a-47ef-a10a-3f8d49700b55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.