`
terry0501
  • 浏览: 305525 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
javaweb 项目部署后发现很耗cpu,需要查出问题所在 写个测试程序,记相关步骤: 故意写个死循环     public class TestCpu {      
Oracle  索引使用总结前段时间公司在严查慢sql,总结一下索引的优缺点,使用场景,以及之前踩过的坑。一、好处1.提高查询速度2.利用索引的唯一性来控制记录的唯一性3.降低查询中分组和排序的时间 二、坏处1.存储索引占用磁盘空间2.执行数据修改操作(INSERT、UPDATE、DELETE)产生索引维护索引是提高数据查询最有效的方法,也是最难全面掌握的技术,因为正确的索引可能使效率提高10000倍,而无效的索引可能是浪费了数据库空间,甚至大大降低查询性能。3.存储索引的磁盘空间4.执行数据修改操作(INSERT、UPDATE、DELETE)产生的索引维护5.在数据处理时回需额外的回退空间。三 ...
字段 允许值 允许的特殊字符   秒 0-59 , - * /   分 0-59 , - * /   小时 0-23 , - * /   日期 1-31 , - * ? / L W C   月份 1-12 或者 JAN-DEC , - * /   星期 1-7 或者 SUN-SAT , - * ? / L C #   年(可选) 留空, 1970-2099 , - * /   表达式意义   "0 ...
import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import javax.servlet.http.HttpServletRequest; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; /** * * @author gao ...
摘要:一、根据程序的运行状况查看其活跃的数据量①、活跃的数据:1.应用程序运行于稳定状态时,老年代占用的java堆大小2.应用程序运行于稳定状态时,永久代占用的java堆大小其实就是FullGc后这2个数据的大小②、动手测试:1.测 ...
Top 200 - OK 201 - Created 202 - Accepted 203 - Non-Authoritative Information (for DNS) 204 - No Content 205 - Reset Content 206 - Partial Content Redirection Codes 300 - Multiple Choices 301 - Moved Permanently 302 - Moved Temporarily 303 - See Other 304 - Not Modified 305 - Use Proxy 307 ...
<!--mybatis-config--> <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <settings> <settin ...
update ccms_acct_customer set province = case left(cid,2)   when '11' then '北京市'   when '12' then '天津市'   when '13' then '河北'   when '14' then '山西'   when '15' then '内蒙'   when '21' then '辽宁'   when '22' then '吉林'   when '23' then '黑龙江'   when '31' then '上海'   when '32' then '江苏'   when '33' then '浙江 ...

JVM 内存模型

 
我们知道,计算机CPU和内存的交互是最频繁的,内存是我们的高速缓存区,用户磁盘和CPU的交互,而CPU运转速度越来越快,磁盘远远跟不上CPU的读写速度,才设计了内存,用户缓冲用户IO等待导致CPU的等待成本,但是随着CPU的发 ...
发送消息 ./kafka-console-consumer.sh  --bootstrap-server 172.16.10.44:9092 --from-beginning --topic BILL_STATUS_CHANGE 接收消息 ./kafka-console-producer.sh --broker-list 127.0.0.1:9092 --topic BILL_STATUS_CHANGE

linux 学习笔记

1.dos2unix 命令 应用场景,windows 下编辑过的shell脚本在linux 下不认识问题解决。  
函数语法: group_concat( [DISTINCT]  要连接的字段   [Order BY 排序字段 ASC/DESC]   [Separator '分隔符'] ) 下面举例说明: select * from goods;  +------+------+ | id| price| +------+------+ |1 | 10| |1 | 20| |1 | 20| |2 | 20| |3 | 200 | |3 | 500 | +------+------+ 6 rows in set (0.00 sec) 以id分组,把price字段的值在同一行打印出来,逗号分隔(默认) ...
@RequestMapping(value = "/refundDepositDownload") public void download(HttpServletRequest request, HttpServletResponse response) { String key=request.getParameter("key"); RBinaryStream io=redissonClient.getBinaryStream(key); try { ...
InputStream in = null; try { if (!isAlarming) { return; } in = this.getClass().getResourceAsStream("/static/email.html"); String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern(DateUtil.defaultSim ...
  <plugin>                 <groupId>org.mybatis.generator</groupId>                 <artifactId>mybatis-generator-maven-plugin</artifactId>                 <version>1.3.2</version>                 <dependencies>                     <dependency>    ...
Global site tag (gtag.js) - Google Analytics