The Premier League, often referred to as the English Premier League or the EPL outside England, is the top level of the English football league system. Contested by 20 clubs, it operates on a system of promotion and relegation with the English Football League (EFL). Seasons run from August to May with each team playing […]
JVM performance tuning monitoring tool hprof use detailed
Ⅰ Problem In real-world enterprise Java development, sometimes we encounter the following problems: OutOfMemoryError Memory leak Thread deadlock Lock Contention Java process consumes too much CPU …… These problems may be overlooked by many people in daily development (for example, some people encounter the above problems just restart the server or increase the memory, but […]
Ali Open Source Java Diagnostic Tool-Arthas
Arthas is an open source tool for Java developed by Alibaba recently. It mainly for diagnosing the problems of java. I. Overview This tool can help you do the following things: Which jar package loaded this class from? Why do you code throws various kinds of Exceptions? If you encounter problems on product environment , […]
Mysql delete duplicate records and only keep one row
Recently, I have been working for a subject storehouse system. Since duplicate subject are added to the storehouse, it is necessary to query the duplicate subject, and delete all duplicate subject leave only one, so that the duplicate subject cannot be taken when the test is taken. First wrote a small example: Single field operation […]
Redis watch command
watch -n 1 -d “redis-cli -h 10.8.7.108 -p 6380 info | grep -e “connected_clients” -e “blocked_clients” -e “used_memory_human” -e “used_memory_peak_human” -e “rejected_connections” -e “evicted_keys” -e “instantaneous”” watch -n 5 -d “redis-cli -h 10.8.7.108 -p 6380 info | grep -e “connected_clients” -e “blocked_clients” -e “used_memory_human” -e “used_memory_peak_human” -e “rejected_connections” -e “evicted_keys” -e “instantaneous””
Logstash converts the @timestamp time to the local time.
Logstash converts the @timestamp time to the local time. If the local time zone is the Beijing time zone, add the following filter to solve the problem. Remember, date { match => [ “mytime”,”yyyy-MM-dd HH:mm:ss” ] } can’t be less
Java problem diagnosis tool–Greys-Anatomy
Introduce a very useful Java process monitoring tool, which can print out the average time and maximum time consumption of each method in the Java class, which is very helpful for troubleshooting delays in Java programs. The name of this tool is: Greys-Anatomy. Greys positioning is a professional JVM business problem location tool. Since it […]
Shell scripts monitor server processes and ports
Shell scripts monitor server processes and ports Recently learned shell programming, wrote a script that can monitor the port, PID, program name, etc. used by the current server; it can be used to find out if there are any ports that are not commonly used to be intercepted, and then judge whether it has been […]
Use AWS SDK for Java 2.0,Set S3 object public access
Yii pseudo static
How to access static php files under the yii framework without having to create multiple actions, here is a simple record, I hope to leading to a better implementation: 1, configured in main.php ‘post/.html’=>’post/page/’ This line of code is the most important 2, implement a postController 3, add the post/pages directory in the corresponding views […]