JSTL format timestamp, for example, how can 1444226313 be displayed as 2015/10/7 21:58:33?
How to solve tomcat exception error:Invalid character found in the request target
How to solve tomcat exception error:
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
Distributed system unique id generation algorithm Twitter Snowflake
In a distributed system, how to solve the unique sequence problem, how to solve the duplication id problem, there are currently many algorithms can be solved, today we introduce a classic solution: Twitter SnowFlake
About the English association football league
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 […]