C:\Program Files\Java\jdk1.8.0_121\bin>jps -m
15524
15432 Launcher D:/download/IntelliJ IDEA 2018.1.1/lib/forms_rt.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/commons-codec-1.9.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/jna.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/jna-platform.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/idea_rt.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/commons-logging-1.2.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/jdom.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/aether-dependency-resolver.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/util.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/aether-1.1.0-all.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/maven-aether-provider-3.3.9-all.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/javac2.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/platform-api.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/oro-2.0.8.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/log4j.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/slf4j-api-1.7.10.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/snappy-in-java-0.5.1.jar;D:/download/IntelliJ IDEA
18504 Launcher D:/download/IntelliJ IDEA 2018.1.1/lib/forms_rt.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/commons-codec-1.9.jar;D:/download/IntelliJ IDEA 2018.1.1/lib/jna.jar;D:/download/IntelliJ IDEA
...
...
3592 Jps -m
20300 UserApiApp
C:\Program Files\Java\jdk1.8.0_121\bin>jstack 17416
...
...
"http-nio-8181-exec-9" #74 daemon prio=5 os_prio=0 tid=0x000000001fc42000 nid=0x33c8 waiting on condition [0x0000000022fbe000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x000000079107a370> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:103)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:31)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
...
...
Found one Java-level deadlock:
=============================
"正在等待的线程名称 t1"
waiting for ownable synchronizer 0x000000001fc40000, (a java.util.concurrent.locks.ReentrantLock$NonfairSync),
which is held by "持有死锁的线程名称 t2"
"正在等待的线程名称 t2"
waiting for ownable synchronizer 0x000000001fc48000, (a java.util.concurrent.locks.ReentrantLock$NonfairSync),
which is held by "持有死锁的线程名称 t1"
...
...
C:\Program Files\Java\jdk1.8.0_121\bin>jmap -clstats 20300
Attaching to process ID 20300, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.121-b13
finding class loader instances ..done.
computing per loader stat ..done.
please wait.. computing liveness..............................................................liveness analysis may be inaccurate ...
class_loader classes bytes parent_loader alive? type
2948 5125781 null live
0x0000000703933390 1 880 0x0000000701814b00 dead sun/reflect/DelegatingClassLoader@0x00000007c0009df8
0x0000000701ed4ee8 1 880 0x0000000701814b00 dead sun/reflect/DelegatingClassLoader@0x00000007c0009df8
0x0000000701b44ab8 1 1473 0x0000000701814b00 dead sun/reflect/DelegatingClassLoader@0x00000007c0009df8
0x0000000701ed47e0 1 880 0x0000000701814b00 dead sun/reflect/DelegatingClassLoader@0x00000007c0009df8
0x0000000701861f88 0 0 0x0000000701814b00 live java/util/ResourceBundle$RBClassLoader@0x00000007c00f5470
0x0000000701b44ea0 1 1473 0x0000000701814b00 dead sun/reflect/DelegatingClassLoader@0x00000007c0009df8
0x0000000701ed43f8 1 880 0x0000000701814b00 dead sun/reflect/DelegatingClassLoader@0x00000007c0009df8
0x0000000702bb43a0 1 1471 null dead sun/reflect/DelegatingClassLoader@0x00000007c0009df8
0x0000000703932c88 1 880 0x0000000701814b00 dead sun/reflect/DelegatingClassLoader@0x00000007c0009df8
...
...
total = 111 11286 19084340 N/A alive=8, dead=103 N/A
...
...
jmap -finalizerinfo 输出等待终结的对象信息
C:\Program Files\Java\jdk1.8.0_121\bin>jmap -finalizerinfo 20300
Attaching to process ID 20300, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.121-b13
Number of objects pending for finalization: 0
Enum是计算机编程语言中的一种数据类型---枚举类型。 在实际问题中,有些变量的取值被限定在一个有限的范围内。 例如,一个星期内只有七天 我们通常这样实现上面的定义:
public String monday;
public String tuesday;
public String wensday;
public String thursday
java.lang.IllegalStateException: No matching PlatformTransactionManager bean found for qualifier 'add' - neither qualifier match nor bean name match!
网上找了好多的资料没能解决,后来发现:项目中使用的是xml配置的方式配置事务,但是
原文:http://stackoverflow.com/questions/15585602/change-limit-for-mysql-row-size-too-large
异常信息:
Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAM
/**
* 格式化时间 2013/6/13 by 半仙 [email protected]
* 需要 pad 函数
* 接收可用的时间值.
* 返回替换时间占位符后的字符串
*
* 时间占位符:年 Y 月 M 日 D 小时 h 分 m 秒 s 重复次数表示占位数
* 如 YYYY 4占4位 YY 占2位<p></p>
* MM DD hh mm
在使用下面的命令是可以通过--help来获取更多的信息1,查询当前目录文件列表:ls
ls命令默认状态下将按首字母升序列出你当前文件夹下面的所有内容,但这样直接运行所得到的信息也是比较少的,通常它可以结合以下这些参数运行以查询更多的信息:
ls / 显示/.下的所有文件和目录
ls -l 给出文件或者文件夹的详细信息
ls -a 显示所有文件,包括隐藏文
Spring Tool Suite(简称STS)是基于Eclipse,专门针对Spring开发者提供大量的便捷功能的优秀开发工具。
在3.7.0版本主要做了如下的更新:
将eclipse版本更新至Eclipse Mars 4.5 GA
Spring Boot(JavaEE开发的颠覆者集大成者,推荐大家学习)的配置语言YAML编辑器的支持(包含自动提示,