Jump to content

I spent all day trying to get my node.js app to run only to have my account suspended overnight???


Recommended Posts

Account: runningantdev

I have just re-read the terms of service and there is nothing in there which I can see being relevant to why my account was suspended. I have received no correspondence from you indicating why either. I can't even think of any potential reason - its a simple nodejs app that talks to a postgres database - I am building and testing a concept which I intend at some point to embed in a mobile app, its not even something that is to be accessible to the general public - its for my own testing purposes. Can I have someone review this please and at least get back to me to explain what the problem is.

Link to comment
Share on other sites

Thanks for your reply. I can't explain that mem usage - I can only guess it's related to multiple instances of the node app running - I had some issues trying to get it running due to environment differences - e.g. sqlite not working, and issues with connection pools. 

Link to comment
Share on other sites

Posted (edited)

I am still waiting for the site to be accessible - it's still saying it's suspended, however the load chart is showing 6GB of mem usage since you reactivated just before. If it's not the running site using memory then what is? Is there any way to get a more granular view of what is using the mem? If nodejs is the issue then is it just not practical in your hosting environment to use it? 

When setting up this site I disabled PHP and everything else I could find to disable except for nodejs. It's not even a complex app - it's just a thin layer that takes web requests and updates a postgres database. I am not seeing any abnormal mem usage when running locally. 

EDIT: its now up to 18GB usage ... simple just to have a response that shows the word "running":

app.get("/", async (req, resp) => {
    resp.send("<html><body>running</body></html>");
});

 

Edited by Rant
Link to comment
Share on other sites

Posted (edited)

Alright, I've hacked back the app to this simple example and restarted node. Will keep an eye on this but if mem usage keeps growing then this is going to be a problem beyond my code/app and something infrastructure related.

"use strict";

const express = require("express");

const app = express();
const port = 80;

app.get("/", async (req, resp) => {
    resp.send("<html><body>running - testing mem usage</body></html>");
});

// start server
app.listen(port, () => {
    console.log(`️[server]: Server is running at http://localhost:${port}`);
});

 

PLEASE NOTE: I've created the following ticket to investigate this further:

https://helionet.org/index/topic/58640-unexplained-nodejs-mem-usage/

Edited by Rant
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...