上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页
摘要: 1、问题 bash:jmap:未找到命令 原因:如果要使用jmap,必须保证虚拟机中已经安装了java-xxx-openjdk-devel-debug,但是centos中默认是没有安装的,因此需要先安装openjdk-devel-debug 2、安装openjdk-devle-debug yum i 阅读全文
posted @ 2020-05-13 10:03 harara 阅读(8033) 评论(0) 推荐(0)
摘要: 查看cpu使用情况的命令:top 查看内存使用量的命令:free -h 查看硬盘剩余量的命令: df redhat查看cpu信息 查看CPU型号 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 查看CPU物理个数 cat /proc/cpu 阅读全文
posted @ 2020-05-12 17:13 harara 阅读(1234) 评论(0) 推荐(1)
摘要: 方法 ReflectionToStringBuilder.toString(user, ToStringStyle.SHORT_PREFIX_STYLE); 示例 package com.harara.test; import org.apache.commons.lang.builder.Refl 阅读全文
posted @ 2020-05-12 11:04 harara 阅读(853) 评论(0) 推荐(0)
摘要: 1、与 and oracle自带函数bitand(int,int) select bitand(2,4) from dual; 2的二进制是0010,4的二进制是0100,与的结果是0 2、或 or bitor(a,b)=a+b-bitand(a,b) 建立自定义函数bitor(a,b) creat 阅读全文
posted @ 2020-05-12 10:22 harara 阅读(1287) 评论(0) 推荐(0)
摘要: 1、将十进制转换为十六进制 to_char select to_char(10,'xxx') from dual; 2、将十六进制转换为十进制 to_number,注意'xxx',如果转换的数比较大,要多写几个,避免位数不足而报错 select to_number('000001','xxxxxx' 阅读全文
posted @ 2020-05-11 17:37 harara 阅读(1930) 评论(0) 推荐(0)
摘要: 语法 raise_application_error(errorNumber, errorMsg[,true,false]); errorNumber必须是-20000到-20999之间,errorMsg是自定义的错误信息,最多为2048个字节。true和false表示是添加进错误堆(true)还是 阅读全文
posted @ 2020-05-11 15:51 harara 阅读(671) 评论(0) 推荐(0)
摘要: 获取20分钟之前的时间 select sysdate-20/24/60,to_date(to_char(sysdate-20/24/60,'yyyy-mm-dd HH24:MI:SS'),'yyyy-mm-dd HH24:MI:SS') from dual; 获取20天之前的时间 select sy 阅读全文
posted @ 2020-05-11 15:10 harara 阅读(1866) 评论(0) 推荐(0)
摘要: 修改processes【最大连接数】和sessions【最大会话数】值 alter system set processes=500 scope=spfile; alter system set sessions=500 scope=spfile; (修改processes和sessions值必须重 阅读全文
posted @ 2020-05-11 14:09 harara 阅读(544) 评论(0) 推荐(0)
摘要: # jcmd <pid> GC.run 阅读全文
posted @ 2020-04-23 11:22 harara 阅读(864) 评论(0) 推荐(0)
摘要: @Async异步方法默认使用Spring创建ThreadPoolTaskExecutor。默认核心线程数:8,最大线程数:Integet.MAX_VALUE,队列使用LinkedBlockingQueue,容量是:Integet.MAX_VALUE,空闲线程保留时间:60s,线程池拒绝策略:Abor 阅读全文
posted @ 2020-04-22 18:50 harara 阅读(9790) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页