Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 7

7.

5 yrs

current ctc - 5 lackhs


exp ctc - 5 - 7 lakhs

notice period -

/home/abu/.pm2
/home/abu/.pm2/dump.pm2
/home/abu/.pm2/dump.pm2.bak
/home/abu/.pm2/logs
/home/abu/.pm2/module_conf.json
/home/abu/.pm2/modules
/home/abu/.pm2/pids
/home/abu/.pm2/pm2.log
/home/abu/.pm2/pm2.pid
/home/abu/.pm2/pub.sock
/home/abu/.pm2/reload.lock
/home/abu/.pm2/rpc.sock
/home/abu/.pm2/touch
/home/abu/.pm2/logs/index-error.log
/home/abu/.pm2/logs/index-out.log
/home/abu/.pm2/logs/web-app-error.log
/home/abu/.pm2/logs/web-app-out.log
/home/abu/.pm2/pids/web-app-0.pid
/home/arun/.pm2
/home/arun/.pm2/logs

/home/abu/.pm2/logs

2022-12-06T10:38:57: Invalid Request. Please refresh and try again.


2022-12-06T10:38:59: index created ==============> realtime-2022-12-6
2022-12-06T10:39:16: index created ==============> realtime-2022-12-6
2022-12-06T10:39:19: index created ==============> realtime-2022-12-6
2022-12-06T10:39:26: Invalid Request. Please refresh and try again.
2022-12-06T10:39:27: index created ==============> realtime-2022-12-6
2022-12-06T10:39:33: index created ==============> realtime-2022-12-6
2022-12-06T10:39:40: index created ==============> realtime-2022-12-6
2022-12-06T10:39:58: Invalid Request. Please refresh and try again.
2022-12-06T10:39:59: index created ==============> realtime-2022-12-6
2022-12-06T10:40:27: Invalid Request. Please refresh and try again.

[abu@prodpgbackoffice logs]$ pm2 status


┌─────┬────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬──
─────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │
status │ cpu │ mem │ user │ watching │
├─────┼────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼──
─────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ web_app │ default │ 1.0.0 │ fork │ 102641 │ 9h │ 159 │
online │ 1.7% │ 237.2mb │ abu │ disabled │
└─────┴────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴──
─────────┴──────────┴──────────┴──────────┴──────────┘
[abu@prodpgbackoffice logs]$ pgrep 102641
[abu@prodpgbackoffice logs]$
[abu@prodpgbackoffice logs]$
[abu@prodpgbackoffice logs]$ ps -ef|grep "102641"
abu 102641 12896 3 02:01 ? 00:21:30 node
/home/valor-pgadmin-001/APPLICATION/index.js
abu 123994 123503 0 11:02 pts/1 00:00:00 grep --color=auto 102641
[abu@prodpgbackoffice logs]$
[abu@prodpgbackoffice logs]$
[abu@prodpgbackoffice logs]$ uptime
11:02:49 up 48 days, 3:27, 6 users, load average: 2.16, 1.80, 1.98
[abu@prodpgbackoffice logs]$ ps -ef|grep -i maxwell
root 84707 1 2 Dec01 ? 03:35:34
/usr/lib/jvm/jre-11-openjdk//bin/java -Dfile.encoding=UTF-8 -
Dlog4j.shutdownCallbackRegistry=com.djdch.log4j.StaticShutdownCallbackRegistry -
cp :/home/valor-pgadmin-001/scripts/redis_cdc_latest/maxwell_redis/bin/../target/
classes:/home/valor-pgadmin-001/scripts/redis_cdc_latest/maxwell_redis/bin/../
target/lib/*:/home/valor-pgadmin-001/scripts/redis_cdc_latest/maxwell_redis/
bin/../target/lib/kafka-clients/kafka-clients-1.0.0.jar com.zendesk.maxwell.Maxwell
--user=maxwell --password=-A#i?j9-&rYG#J7[b}0|gO~mK --host=192.168.16.226 --
port=3306 --log_level=ERROR --producer=redis --redis_host=127.0.0.1 --
redis_type=lpush --filter=exclude: *.*, include: uat_switch.transactions, include:
uat_switch.batches, include: uat_switch.batches_queue, include:
uat_switch.batch_profile, include: uat_switch.iso_risk_rule_params, include:
switch.transactions, include: switch.batches, include: switch.batches_queue,
include: switch.batch_profile, include: switch.iso_risk_rule_params --
jdbc_options=autoReconnect=true --daemon
abu 124288 123503 0 11:03 pts/1 00:00:00 grep --color=auto -i maxwell
[abu@prodpgbackoffice logs]$ date
Tue Dec 6 11:03:18 UTC 2022
[abu@prodpgbackoffice logs]$ ps -ef|grep -i c3
root 68368 1 4 Nov24 ? 13:47:00 python3 cdc3.py
root 83924 1 10 Dec01 ? 13:10:22 python3 C3_OPTIMIZE.py 1 DISABLE
abu 124426 123503 0 11:03 pts/1 00:00:00 grep --color=auto -i c3
[abu@prodpgbackoffice logs]$ ps -ef|grep -i pm2
abu 12896 1 0 Oct19 ? 01:09:01 PM2 v4.2.3: God Daemon
(/home/abu/.pm2)
root 15587 1 0 Oct27 ? 00:00:26 PM2 v4.2.3: God Daemon
(/root/.pm2)
abu 124928 123503 0 11:04 pts/1 00:00:00 grep --color=auto -i pm2
[abu@prodpgbackoffice logs]$ ps -ef|grep "83924"
root 83924 1 10 Dec01 ? 13:10:36 python3 C3_OPTIMIZE.py 1 DISABLE
abu 125232 123503 0 11:05 pts/1 00:00:00 grep --color=auto 83924
[abu@prodpgbackoffice logs]$ dATE
bash: dATE: command not found
[abu@prodpgbackoffice logs]$ date
Tue Dec 6 11:05:40 UTC 2022

2022/12/06 02:01:25 [error]

M2 | App [uat_web_app:0] exited with code [0] via signal [SIGKILL]


PM2 | App [uat_web_app:0] starting in -fork mode-
PM2 | App [uat_web_app:0] online
0|uat_web_app | 2022-12-06T11:50:20: App is listening on port 5500
0|uat_web_app | 2022-12-06T11:50:20: ES Cluster is up!

===============

ebappout.log:2022-12-01T08:44:04: ES Cluster is up!


webappout.log:2022-12-01T17:40:14: ES Cluster is up!
webappout.log:2022-12-02T09:10:36: ES Cluster is up!
webappout.log:2022-12-02T11:54:23: ES Cluster is up!
webappout.log:2022-12-02T11:54:38: ES Cluster is up!
webappout.log:2022-12-02T11:55:00: ES Cluster is up!
webappout.log:2022-12-02T11:55:14: ES Cluster is up!
webappout.log:2022-12-02T23:04:40: ES Cluster is up!
webappout.log:2022-12-02T23:04:53: ES Cluster is up!
webappout.log:2022-12-03T16:49:05: ES Cluster is up!
webappout.log:2022-12-04T04:44:13: ES Cluster is up!
webappout.log:2022-12-05T08:07:40: ES Cluster is up!
webappout.log:2022-12-06T00:26:58: ES Cluster is up!
webappout.log:2022-12-06T02:01:11: ES Cluster is up!
webappout.log:2022-12-06T02:01:25: ES Cluster is up!

pwd

/home/abu/.pm2/logs

2022-12-01T08:44:04: ES Cluster is up!


2022-12-01T17:40:14: ES Cluster is up!
2022-12-02T09:10:36: ES Cluster is up!
2022-12-02T11:54:23: ES Cluster is up!
2022-12-02T11:54:38: ES Cluster is up!
2022-12-02T11:55:00: ES Cluster is up!
2022-12-02T11:55:14: ES Cluster is up!
2022-12-02T23:04:40: ES Cluster is up!
2022-12-02T23:04:53: ES Cluster is up!
2022-12-03T16:49:05: ES Cluster is up!
2022-12-04T04:44:13: ES Cluster is up!
2022-12-05T08:07:40: ES Cluster is up!
2022-12-06T00:26:58: ES Cluster is up!
2022-12-06T02:01:11: ES Cluster is up!
2022-12-06T02:01:25: ES Cluster is up!
2022-12-06T16:38:59: ES Cluster is up!
2022-12-06T16:41:14: ES Cluster is up!
2022-12-06T20:54:35: ES Cluster is up!
2022-12-07T16:46:23: ES Cluster is up!

==========

pm2 index.js

const server = require('http').createServer(app);


const io = require('socket.io')().listen(server);
const port = process.env.PORT || 5000;
server.timeout = 4 * 60 * 1000;
io.setMaxListeners(100);
var multer = require('multer');
var upload = multer();
const ACCEPTED_CONTENT_TYPES_WHITELIST = ['', 'application/json', 'multipart/form-
data'];

https://felixgerschau.com/javascript-heap-out-of-memory-error/

====================

abu@prodpgbackoffice logs]$ pm2 status


┌─────┬────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬──
─────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │
status │ cpu │ mem │ user │ watching │
├─────┼────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼──
─────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ web_app │ default │ 1.0.0 │ fork │ 56360 │ 14h │ 162 │
online │ 0.5% │ 578.0mb │ abu │ disabled │
└─────┴────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴──
─────────┴──────────┴──────────┴──────────┴──────────┘
[abu@prodpgbackoffice logs]$ date
Wed Dec 7 11:22:53 UTC 2022

========================================

[abu@prodpgbackoffice logs]$ pm2 status


┌─────┬────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬──
─────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │
status │ cpu │ mem │ user │ watching │
├─────┼────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼──
─────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ web_app │ default │ 1.0.0 │ fork │ 56360 │ 14h │ 162 │
online │ 6.8% │ 578.4mb │ abu │ disabled │
└─────┴────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴──
─────────┴──────────┴──────────┴──────────┴──────────┘

====================
[abu@prodpgbackoffice logs]$ pm2 status
┌─────┬────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬──
─────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │
status │ cpu │ mem │ user │ watching │
├─────┼────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼──
─────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ web_app │ default │ 1.0.0 │ fork │ 56360 │ 14h │ 162 │
online │ 4.4% │ 621.0mb │ abu │ disabled │
└─────┴────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴──
─────────┴──────────┴──────────┴──────────┴──────────┘
[abu@prodpgbackoffice logs]$
[abu@prodpgbackoffice logs]$
[abu@prodpgbackoffice logs]$ date
Wed Dec 7 11:37:23 UTC 2022
abu@prodpgbackoffice nginx]$ pm2 status
┌─────┬────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬──
─────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │
status │ cpu │ mem │ user │ watching │
├─────┼────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼──
─────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ web_app │ default │ 1.0.0 │ fork │ 23560 │ 13h │ 163 │
online │ 3.5% │ 1.4gb │ abu │ disabled │
└─────┴────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴──
─────────┴──────────┴──────────┴──────────┴──────────┘
[abu@prodpgbackoffice nginx]$
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------

[abu@prodpgbackoffice satheesh]$ ps -ef | wc -l


7358
[abu@prodpgbackoffice satheesh]$ pm2 status
┌─────┬────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬──
─────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │
status │ cpu │ mem │ user │ watching │
├─────┼────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼──
─────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ web_app │ default │ 1.0.0 │ fork │ 52748 │ 13h │ 165 │
online │ 1.2% │ 1.4gb │ abu │ disabled │
└─────┴────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴──
─────────┴──────────┴──────────┴──────────┴──────────┘
[abu@prodpgbackoffice satheesh]$ date
Fri Dec 9 06:23:06 UTC 2022

abu@prodpgbackoffice satheesh]$ ps -ef | grep 'sendmail' | wc -l


2364

[abu@prodpgbackoffice satheesh]$ ps -ef | grep 'postdrop' | wc -l


2365

[abu@prodpgbackoffice satheesh]$ ps -ef | grep 'postdrop' | more


abu 331 330 0 Dec06 ? 00:00:02 /usr/sbin/postdrop -r
abu 340 339 0 Dec08 ? 00:00:00 /usr/sbin/postdrop -r
abu 386 382 0 Dec04 ? 00:00:03 /usr/sbin/postdrop -r
abu 482 481 0 Dec03 ? 00:00:05 /usr/sbin/postdrop -r
abu 520 519 0 Dec04 ? 00:00:04 /usr/sbin/postdrop -r

[abu@prodpgbackoffice satheesh]$ ps -ef | grep 'sendmail' | more


abu 330 130977 0 Dec06 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -
i -odi -oem -oi -t -f abu
abu 339 131032 0 Dec08 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -
i -odi -oem -oi -t -f abu
abu 382 300 0 Dec04 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -
i -odi -oem -oi -t -f abu
abu 481 344 0 Dec03 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -
i -odi -oem -oi -t -f abu
abu 519 442 0 Dec04 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -
i -odi -oem -oi -t -f abu
abu 549 465 0 Dec07 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -
i -odi -oem -oi -t -f abu

Batch no----->

root@prodpgbackoffice nginx]# service nginx status


Redirecting to /bin/systemctl status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset:
disabled)
Drop-In: /etc/systemd/system/nginx.service.d
└─override.conf
Active: active (running) since Mon 2022-12-05 08:08:01 UTC; 4 days ago
Process: 71762 ExecReload=/usr/sbin/nginx -s reload (code=exited,
status=0/SUCCESS)
Process: 30582 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 30580 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 30578 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited,
status=0/SUCCESS)
Main PID: 30583 (nginx)
CGroup: /system.slice/nginx.service
├─30583 nginx: master process /usr/sbin/nginx
├─71768 nginx: worker process
├─71769 nginx: worker process
├─71770 nginx: worker process
├─71771 nginx: worker process
├─71772 nginx: worker process
├─71773 nginx: worker process
├─71774 nginx: worker process
└─71775 nginx: worker process

Warning: Journal has been rotated since unit was started

[root@prodpgbackoffice nginx]# more error.log


2022/12/09 10:30:16 [notice] 71762#71762: signal process started
[root@prodpgbackoffice nginx]#
[root@prodpgbackoffice nginx]#
[root@prodpgbackoffice nginx]# pwd
/var/log/nginx
[root@prodpgbackoffice nginx]#
2022/12/09 10:30:16 [error] 30591#30591: *1798684 upstream prematurely closed
connection while reading response header from upstream, client: 72.68.67.52,
server: online.valorpaytech.com, request: "GET /socket.io/?
EIO=3&transport=polling&t=OJsRqrh&sid=cCsYLABr5sKtYAorAEZj HTTP/2.0", upstream:
"http://127.0.0.1:5000/socket.io/?
EIO=3&transport=polling&t=OJsRqrh&sid=cCsYLABr5sKtYAorAEZj", host:
"online.valorpaytech.com", referrer:
"https://online.valorpaytech.com/app/reports/closeBatch"
2022/12/09 10:30:16 [error] 30591#30591: *1798684 connect() failed (111: Connection
refused) while connecting to upstream, client: 72.68.67.52, server:
online.valorpaytech.com, request: "POST /socket.io/?
EIO=3&transport=polling&t=OJsRuoL&sid=cCsYLABr5sKtYAorAEZj HTTP/2.0", upstream:
"http://127.0.0.1:5000/socket.io/?
EIO=3&transport=polling&t=OJsRuoL&sid=cCsYLABr5sKtYAorAEZj", host:
"online.valorpaytech.com", referrer:
"https://online.valorpaytech.com/app/reports/closeBatch"

2022-12-09T10:30:19: ES Cluster is up!

https://pm2.io/docs/runtime/overview/

https://medium.com/dailyjs/how-to-prevent-your-node-js-process-from-crashing-
5d40247b8ab2

https://dev.to/jarraga/prevent-app-crash-node-js-3m7c

You might also like