node.js - Finding logs for crashing application on Bluemix -
i have node.js app crashing , have no idea why. when try access logs 'files , logs' in app dashboard, says 'the application not started, there no files or logs available.'. have no idea why application crashing , logs not available!
app.js
require('newrelic'); //monitoring var express = require('express');//middleware var app = express(); var cfenv = require('cfenv');// cloud foundry library var appenv = cfenv.getappenv(); app.use(express.static(__dirname + '/public')); app.listen(appenv.port, appenv.bind, function() { console.log("server starting on " + appenv.url); });
applications: - disk_quota: 1024m host: x name: x path: . domain: mybluemix.net instances: 1 memory: 256m
thanks help
update: took fix upping memory amount. user agent new relic added memory overhead caused hit 256mb limit.
to logs crashed app, use command:
cf logs <appname> --recent
Comments
Post a Comment