Posts

Showing posts from September, 2022

Linux Java Monitoring Commands | Thread Dump | Heap Dump | Disk Space

  How to perform a Thread Dump   #Option 1)   $ kill -3 JBOSSPID   #Option 2)   $ jstack -l JBOSSPID > jstack.out   **#Replace JBOSSPID with the Application server's PID  

JBOSS Monitoring Commands on Linux

  ##Check all the process ids of Jboss: pgrep -f jboss   ##Check on which port jboss is running ps -eaf | grep   jboss | cut -c126-140   ##Cut can be customized   ps -eaf | grep   jboss | grep -E -o ".{0,8}httpport.{0,8}"     ##Command to get only specific text: cut -c126-140   ##will list all chars starting from 126 to 140   ##JBoss cheatsheet for Linux Administrators ##Details Published: 05 January 2016   #Domain How to check that the Domain Controller is alive   #!/bin/bash CONNECTED=$(netstat -an | grep -wF 9999 | wc -l) while [ $CONNECTED -gt 0 ] do   sleep 20   CONNECTED=$(netstat -an | grep -wF 9999 | wc -l) done echo "Lost Domain Controller! Do something here." ##Replace "9999" with the jboss.management.native.port if you don't use the default port.   ##JBoss CLI   ##How to store in a bash variable the result of a Command Line readAttrib...

102 Questions to Ask for performance Testing

 The List: 102 Questions to Ask Performance Engineering is a complex discipline encompassing applications, infrastructure, security, and more. To truly optimize your performance, your organization needs to address a broad range of issues. To make informed decisions, individuals and organizations need to start asking some or all of the following 102 questions. This list is intended to be inclusive but not exclusive, and apply across all DevTestOps approaches. No matter what your role, persona, and interest, this list should help you understand how your solution is engineered for performance, stability, and scalability. Our goal is to help you, your team, and your stakeholders gain a common nomenclature for Performance Engineering so you can define your path and direction together. We intend the following as a checklist of actionable items, so you can ask informed questions as you start collaborating and adopting Effective Performance Engineering practices throughout your lifecycle. ...

D365-FO for Performance Engineers (1-Architecture)

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/imp-lifecycle/architecture-overview?toc=/dynamics365/commerce/toc.json   What contains inside a FO Environment: Backoffice: Application Object Server (AOS) Batch AOS Server BO - database Dynamics 365 Commerce POS  and  ECOMM They consist of a CSU-Cloud Scale unit one CSU contains  App Server  Database Server ** Data and setup required moves to and fro from Channel [CSU DB] to BO(Backoffice DB) through Scheduled jobs Management Reporter   Tier1: SQL Server >Tier1:Azure SQL Database   Tier-1 vs. Tier-2 and higher Tier-1 Tier-2 and higher Single-box environment Multi-box environment All components are installed on the same server. These components include Application Object Server (AOS), the database, Dynamics 365 Commerce, and Management Reporter. Components are installed on multiple servers. ...

postgresql monitoring setup commands

Reset all statistics select * from pg_stat_reset(); select * from pg_stat_statements_reset(); Enable Stats by adding the parameter group file in AWS Where you need to enable the monitoring and   # add pg_stat_statements to your postgresql.conf and restart the server shared_preload_libraries = 'pg_stat_statements' From <https://github.com/cybertec-postgresql/pgwatch2>  select dbid, queryid,  calls, ROUND(total_time)/1000 as TTL_in_s, round(min_time)/1000 as Min_in_S, round(max_time)/1000 as max_in_s,rows , rows/calls as AvgResultCnt,query from "pg_stat_statements"   order by 3 desc; SELECT funcname, calls,CAST(total_time/1000 AS DOUBLE precision) as TotalTimei_in_s,CAST (total_time/1000/calls AS INTEGER ) as AvgExecution_Time_In_SecondsPerCall FROM pg_stat_user_functions;

Top Docker Commands

 What all commands we tried         0.  Docker build .  create the docker image for the docker file kept in folder 1. Docker-compose build  Used to build the docker file using docker compose Docker-compose up command also does it but also run the image  When you just want to build it  use only build 2. Docker run -itd "ImageName" Run the image in deatached mode "d" It --> interactive 3. Docker exec -it bash Execute a command on running container 4. Docker image ls List images 5. Docker image history See the history of the image  All layers and how much space they contribute in total size --no-trunc | to ask image history not to truncate the text in results printed 6. Docker rmi imageName -f Remove the Docker image 7. Docker image prune Remove the dangling images  8. Docker stats See the current information of all conatienrs 9. Docker ps  See all processes running in docker 10. Docker inspect Inspect ...

Investment Rules

 Nine Personal Finance Rules we all should better know.* 1) Rule of 72 (Double Your Money) 2) Rule of 70 (Inflation) 3) 4% Withdrawal Rule 4) 100 Minus Age Rule 5) 10, 5, 3 Rule 6) 50-30-20 Rule 7) 3X Emergency Rule 8) 40℅ EMI Rule 9) Life Insurance Rule 1) *Rule of 72* No. of yrs required to double your money at a given rate, U just divide 72 by interest rate Eg, if you want to know how long it will take to double your money at 8% interest, divide 72 by 8 and get 9 yrs At 6% rate, it will take 12 yrs At 9% rate, it will take 8 yrs 2) *Rule of 70* Divide 70 by current inflation rate to know how fast the value of your investment will get reduced to half its present value. Inflation rate of 7% will reduce the value of your money to half in 10 years. 3) *4% Rule for Financial Freedom* Corpus Reqd = 25 times of your estimated Annual Expenses. Eg- if your annual expense after 50 years of age is 500,000 and you wish to take VRS then corpus with you required is 1.25 cr. Put 50% of this in...

Top Docker Commands

What all commands we tried 0. Docker build . - create the docker image for the docker file kept in folder 1. Docker-compose build  Used to build the docker file using docker compose Docker-compose up command also does it but also run the image  When you just want to build it use only build 2. Docker run -itd "ImageName" Run the image in deatached mode "d" It --> interactive 3. Docker exec -it bash Execute a command on running container 4. Docker image ls List images 5. Docker image history See the history of the image  All layers and how much space they contribute in total size --no-trunc | to ask image history not to truncate the text in results printed 6. Docker rmi imageName -f Remove the Docker image 7. Docker image prune Remove the dangling images  8. Docker stats See the current information of all conatienrs 9. Docker ps  See all processes running in docker 10. Docker inspect Inspect the Docker image or container Info such as IP address , path , po...

What all we learnt in docker implemented in current Project

Now regarding the docker size what all we tried   we got to know that there is one extra log file consisting inside code with is huge which is of no use to be checked In and used in docker compose we expected that size will come down after deleting that file or by adding that file in dockerignore file, so that that file is not used when code is complied. but even after removing the size remained same. also,we have seen the size of that file when compressed is very low although when extracted it is huge and even file is copied when a container runs, file is overwritten, hence reducing the size We also need to check why docker size in AWS ECR repo and when we download it in my local is different marginally???? | Because the file which is pushed in ECR is compressed and saved. whereas locally it is extracted and saved. we tried to see what all is copied  when we checked inside the docker image which we build after code build, the size of files in /app folder is arou...

Top Links to Learning performance Engineering D365

  PT https://community.dynamics.com/365/dynamics-365-fasttrack/b/techtalks/posts/performance-testing-approach-april-30-2018 https://community.dynamics.com/365/dynamics-365-fasttrack/b/techtalks/posts/finance-and-operations-performance-benchmark-for-dynamics-365-1-30-19 PT Antipatterns https://community.dynamics.com/365/dynamics-365-fasttrack/b/techtalks/posts/finance-and-operations-performance-key-patterns-and-anti-patterns-for-dynamics-365-1-15-19 Performance Troubleshooting https://community.dynamics.com/365/dynamics-365-fasttrack/b/techtalks/posts/finance-and-operations-performance-troubleshooting-tools-for-dynamics-365-12-14-18 Performance optimization https://community.dynamics.com/365/dynamics-365-fasttrack/b/techtalks/posts/performance-optimization-june-7-2017 https://community.dynamics.com/365/dynamics-365-fasttrack/b/techtalks/posts/performance-optimization-january-30-2018 Best Practices https://community.dynamics.com/365/b/communityteam/posts/techtalk-unlock-the-power-of-...