Tag: java
Heap dump, java visualVM
http://www.quizful.net/post/java-memory-leak-visualvm
https://habrahabr.ru/company/luxoft/blog/146988/
https://shipilev.net/blog/archive/visualvm/
https://habrahabr.ru/post/253683/
http://docs.oracle.com/javase/6/docs/technotes/tools/share/jhat.html
Tomcat, GlassFish
- Tomcat
add Environment variable CATALINA_HOME
port: <tomcat>/conf/server.xml
user: <tomcat>/conf/tomcat-users.xml
<user username=”arvifox” password=”arvifox” roles=”manager-gui,manager-script,manager-status,manager-jmx”/> - GlassFish
port: GlassFish\glassfish\domains\domain1\config\domain.xml
user: go to admin to change the password
How to compile java. How to build jar
Why did I decide to write this post?
Because of these:
Could not find or load main class
or How to specify main class for console app.
Collator
Performing Locale-Independent Comparisons
Collator c = Collator.getInstance(new Locale("ru")); //c.setStrength(Collator.PRIMARY); System.out.println(c.compare("JOHN", "JOHN")); System.out.println(c.compare("JOHN", "John")); System.out.println(c.compare("JOHN", "john")); System.out.println("JOHN".compareTo("bill"));