Feng's Notes Isn't coding fun?
Posts with the tag Java:

Task queues in different languages

Task queue is used widely in software development. It is a mechanism to distribute work across threads or machines. It is also a way to coordinate workers to perform tasks. The scenario could be a web application that needs to process a large number of requests, a data pipeline that needs to process a large amount of data or a scheduled job that needs to run periodically. I have used task queues in different languages.

CPU/Load偏高的排查步骤

1. 查找 java进程

ps -ef|grep java

2. 查找耗时最高线程

top -Hp #进程id#

3. 将线程id转换为16进制

printf “%x\n” #线程id#

写一个并发请求的Case

有些场景下,你可能要检查代码有没有并发问题,验证幂等或者做一下简单的压力测试, 这时候需要写一个并发请求的程序,那么怎么做呢?

What you need to know for memory-leaks troubleshooting(排查内存泄漏你需要知道的套路)

内存泄漏是一个比较棘手的问题,大多数时候没有明显的报错,这给问题排查带来很大困难,好在前人已经遇到很多类似问题,也留下了一些典型的排查套路,大部分时候只需要按图索骥,一步步来即可。

线程池核心知识点

—读《java并发编程》笔记

为什么需要线程执行框架

不用线程池是否也有异步执行任务的方案?