RSS feed [root] /weblog /java




login:

password:

title search:




 


Thu Apr 06 06:33:22 GMT 2023

java



(google search) (amazon search)
second
download zip of files only

Tue Dec 01 02:06:11 GMT 2015 From /weblog/java/performance

measurement


Use of LatencyUtil - https://jaxenter.com[..]ime-and-latency-measurements-119298.html

performance-problems-pre-production-tests - https://jaxenter.com[..]roblems-pre-production-tests-114128.html

(google search) (amazon search)


Mon Sep 21 03:47:50 GMT 2015 From /weblog/java/discussion

good


http://blog.jooq.org/2014/04/09/java-rocks-more-than-ever/

http://www.javacodegeeks.com/2015/09/advanced-java.html

(google search) (amazon search)


Wed Sep 16 07:47:28 GMT 2015 From /weblog/java/libraries

query


Tutorial of an object query language - http://www.javacodegeeks.com/2015/09/work-with-the-jooq-dsl.html

(google search) (amazon search)


Fri Aug 07 08:51:03 GMT 2015 From /weblog/java/discussion

support


java-server-application-troubleshooting-using-jdk-tools - http://java-performance.info[..]ication-troubleshooting-using-jdk-tools/

(google search) (amazon search)


Mon Jul 06 01:26:54 GMT 2015 From /weblog/java/libraries

httpclient


howto-create-https-connections-to-servers-with-self-signed-certificates-using-apache-jakarta-commons-httpclient-package

http://orangevolt.com[..]ache-jakarta-commons-httpclient-package/

Some say this is the fastest - http://ruedigermoeller.github.io/kontraktor/

(google search) (amazon search)


Fri Mar 27 09:19:52 GMT 2015 From /weblog/java/performance

java performance summary


A short summary of various aspect about performance - http://codeperformance.com[..]07/07/javaone-talk-on-performance-myths/

Any other discussion - http://www-128.ibm.com[..]eloperworks/java/library/j-jtp09275.html

Paper to show some prevalent methodologies can be misleading, and can even lead to incorrect conclusions. - http://buytaert.net[..]lly-rigorous-java-performance-evaluation

Discussion about various issue on microbenchmark, try to do premature optimzation - http://www.javacodegeeks.com[..]/performance-anxiety-on-performance.html

Java vs C performance... again... http://blogs.azulsystems.com[..]2009/09/java-vs-c-performance-again.html

http://blog.jooq.org[..]-easy-performance-optimisations-in-java/

(google search) (amazon search)



Tue Feb 10 09:33:40 GMT 2015 From /weblog/java/performance

various tips


-XX:+TieredCompilation, -XX:+UseCompressedOops, Escape Analysis and -XX:+UseNUMA - http://docs.oracle.com[..]uides/vm/performance-enhancements-7.html

Interestingly, PrintWriter, if pooled, shows considerable performance improvement. The creation of the object is expensive because of a call to get the line separator in its constructor.

http://sachinhejip.blogspot.com[..]/08/experiences-in-java-performance.html

Experience in twitter - http://www.umbrant.com/blog/2012/twitter_jvm_tuning.html

Cases study on how to test performance from using difference GC algo - http://plumbr.eu/blog/g1-vs-cms-vs-parallel-gc

A lot of information - http://www.javaadvent.com[..]-1-of-3-synopsis-of-articles-videos.html

Basically use lower level construct - http://blog.jooq.org[..]-easy-performance-optimisations-in-java/

(google search) (amazon search)


Tue Dec 23 08:38:16 GMT 2014 From /weblog/java/performance

serialization


Comparing the Java Serialization Options - http://www.theserverside.com[..]_id=57871&asrc=EM_NLN_9286283&uid=703565

Use Unsafe for best performance Serialization - http://mechanical-sympathy.blogspot.com.au[..]native-cc-like-performance-for-java.html

off heap serialization - http://java-is-the-new-c.blogspot.com.au[..]/a-persistent-keyvalue-server-in-40.html

(google search) (amazon search)


Sun Dec 14 01:38:06 GMT 2014 From /weblog/java/fundamental

java.io.File


createTempFile() will not delete after JDK quit... which I also suppose it will

List of issue about File api, which I totally agree. http://hoskinator.blogspot.com/2006/06/using-file-class.html

delete() will delete the file immediately even using some 3rd undelete utility cannot recover , I think the implementation should allow recovery chance - http://www.ryanlowe.ca[..]es/000574_java_delete_to_recycle_bin.php

http://blog.pengyifan.com/java-io-in-nutshell-22-case-studies/

(google search) (amazon search)


Sun Dec 14 01:37:13 GMT 2014 From /weblog/java/fundamental

date


One fact of System.nanoTime() ,
I think System.nanoTime()'s contract right now is that it *always*
increases by a fixed amount. In other words, it's monotonic. So NTP
updates, or user's changing system time can never cause any change to
System.nanoTime().

https://jsr-310.dev.java.net/servlets/ReadMsg?list=dev&msgNo=1282

A more detailed explanation of nanoTime() and currentMilliSecond() - http://blogs.sun.com/dholmes/entry/inside_the_hotspot_vm_clocks

http://blog.joda.org[..]nverting-from-joda-time-to-javatime.html

(google search) (amazon search)


Tue Nov 04 14:55:09 GMT 2014 From /weblog/java/eclipse

tips


A tip of how to debuy any application remotely in eclipse
http://jroller.com[..]y=debugging_any_application_with_eclipse

List of eclipse plugins with code checking
http://www-128.ibm.com[..]ava/library/j-ap01117/index.html?ca=drs-

A list of good eclipse tutorial
http://www.intelligentedu.com[..]tes/440/Best-27-Eclipse-Tutorials-by-IBM

A list of useful plugins for netbeans
http://www.adam-bien.com[..]/abien?entry=over_eclipsed_10_reasons_to

A list of useful tools which can use with or without IDE, like ant, p6spy
http://www.adam-bien.com[..]ge/abien?entry=some_useful_tools_for_the

A very good way to editing source code at remote unix machine, integrate eclipse and vim - http://eclim.sourceforge.net/

GUI test - http://www.eclipse.org[..]documents/userguides/Intro-Auto-GUI.html http://jemmy.netbeans.org/

How to get old eclipse version - http://eclipser-blog.blogspot.com[..]w-to-find-other-versions-of-eclipse.html

Nice example of customizing code template - http://dev.eclipse.org/blogs/jdtui/2007/11/20/text-templates-1/

How to make swt test work for all platform - http://www.nabble.com[..]clipse-swt-linux-library-td19103219.html

Fix copy and paste in Java - http://www.luisdelarosa.com/2012/11/21/fixing-copy-in-eclipse/

Fix the autocomplete of eclipse! - http://ananthchellathurai.blogspot.com.au[..]how-to-make-eclipse-autocomplete-to.html

http://blog.jooq.org[..]27/top-5-useful-hidden-eclipse-features/

http://keyholesoftware.com/2014/02/25/developers-are-lazy/

Using favourite - http://blog.jooq.org[..]27/top-5-useful-hidden-eclipse-features/

(google search) (amazon search)


Wed Jul 23 01:57:03 GMT 2014 From /weblog/java/string

comparison


Better sorting should do 2 things:
1) case insensitive
2) aware of numbers in the file names. So File2 comes after File1 (obviously) but before File10

http://jroller.com[..]ingcomparator_sorting_strings_for_people

source: http://jroller.com/resources/t/tfenne/HumaneStringComparator.java

Switch comparison - http://java-performance.info/string-switch-performance/

(google search) (amazon search)


Tue Jul 15 14:16:21 GMT 2014 From /weblog/java/annotation

A discussion of various use case of annotation


Some good, some bad and some ugly - http://jroller.com[..]tPark?entry=annotations_the_good_the_bad

http://www.yegor256.com[..]/01/aop-aspectj-java-method-logging.html

(google search) (amazon search)


Wed Jun 25 06:26:02 GMT 2014 From /weblog/java/libraries

aspect


Allow a Java method to work for a maximum of five seconds and want an exception to be thrown if the timeframe is exceeded. Here is how you can do it with jcabi-aspects and AspectJ - http://www.yegor256.com[..]4/06/20/limit-method-execution-time.html

(google search) (amazon search)


Mon Jun 16 09:21:07 GMT 2014 From /weblog/java/network

mail


Some advance usage of javamail and apache james smtp server... but I guess not much ppl will use this server, right? - http://cephas.net[..]ment_variable_envelope_return_paths.html

Code sample of using auth required SMTP server - http://timarcher.com/?q=node/53

Properties to prevent infinite timeout for all socket operations, in Java mail - http://andreas.haufler.info[..]vamail-can-be-evil-and-force-you-to.html

(google search) (amazon search)


Tue Apr 22 05:08:26 GMT 2014 From /weblog/java/fundamental

type


Nice instanceof replacement - http://nurkiewicz.blogspot.com.au[..]anceof-operator-and-visitor-pattern.html https://github.com/nurkiewicz/typeof

http://interviewquestionjava.blogspot.hk[..]01/java-data-types-conversion-chart.html

How to use reflection to get the size of Primitive - http://marxsoftware.blogspot.com.au[..]rogrammatic-access-java-types-sizes.html

(google search) (amazon search)


Wed Mar 26 03:10:08 GMT 2014 From /weblog/java/concurrency

Reference


How weak and soft reference work http://www.javaspecialists.co.za/archive/Issue098.html http://javarevisited.blogspot.com.au[..]rence-phantom-strong-reference-java.html

Issue about weakhashmap - http://blogs.azulsystems.com/cliff/2007/08/why-weakhashmap.html

When soft reference clean? - http://jeremymanson.blogspot.com[..]/07/how-hotspot-decides-to-clear_07.html

(google search) (amazon search)


Mon Jan 06 08:30:32 GMT 2014 From /weblog/java/features

generics


As Java still need to support Collection.get(Object) , it is easy to get NPE if you use wrong type accidentally
http://jroller.com/page/sstirling?entry=map_get_object_and_java
I met this problem when using wicket, one cool feature of ListMultipleChoice is that if the list I press into the constructor is not List, it will persist the type information.
However, if you use this API carelessly and think the List return from the HTML form is always List . Then you will get strangle null pointer exception when you operate with the list instead of ClassCastException, as java will surpress the ClassCastException from ArrayList.get(i) sliencely and just return null to caller.

A related one but not really related to generics - http://www.pankaj-k.net/archives/2006/11/how_hard_is_tes.html , look like the behaviours difference of primittive and wrapper class at NULL is very easy to get hard to check bug

Another one, JDK generic try to cast to wrong class internally: http://jroller.com/page/dhall?entry=exploring_the_limits_of_java

Some cool feature, apply generic in comparable - http://tech.puredanger.com/2006/11/22/comparator-jdk5/

Wildcast in generic -http://javarevisited.blogspot.com[..]-is-bounded-and-unbounded-wildcards.html

http://javarevisited.blogspot.com.au[..]trized-class-method-Generic-example.html

http://mydailyjava.blogspot.com.au[..]6/advanced-java-generics-retreiving.html

(google search) (amazon search)


Mon Dec 23 10:09:08 GMT 2013 From /weblog/java/concurrency

pool


Demo how java 1.5 built-in thread pool work: http://blogs.sun.com[..]ry=swingworker_throttling_and_monitoring

Sample of thread pool - http://www.javaworld.com/javaworld/jw-01-2005/jw-0124-pool_p.html

Discussion about how to estimate threadpool size - http://www.infoq.com/articles/Java-Thread-Pool-Performance-Tuning

(google search) (amazon search)


Wed Dec 18 07:53:04 GMT 2013 From /weblog/java/hacks

cglib


http://www.jroller.com[..]/20050506#java_dynamic_proxies_and_cglib

http://mydailyjava.blogspot.com.au[..]com.au/2013/11/cglib-missing-manual.html

(google search) (amazon search)


Tue Dec 10 03:58:22 GMT 2013 From /weblog/java/features

i18n


Java: Moving conditions into Message files - http://www.mscharhag.com[..]the-java-classes-resourcebundle-and.html

(google search) (amazon search)


Thu Dec 05 05:16:04 GMT 2013 From /weblog/java/hacks

preprocessor


Funny, using gcc preprocessor with java - https://gist.github.com/anonymous/7797380

(google search) (amazon search)


Wed Dec 04 11:27:37 GMT 2013 From /weblog/java/network

jetty


Guide of how to start and config jetty dynamic at code - http://www.onjava.com/lpt/a/6623 , even change the config after the server started.

Websocket coding sample - http://aredko.blogspot.hk[..]java-websockets-jsr-356-on-jetty-91.html

(google search) (amazon search)


Mon Dec 02 03:47:12 GMT 2013 From /weblog/java/string

unicode


A common issue of Windows environment and the workaround - http://jroller.com/page/ff?entry=java_utf_8_bug_grief

Strange String issues in JVM languages, don't trust all string operations all the time! https://sites.google.com[..]/posts/strangestringissuesinjvmlanguages http://mortoray.com/2013/11/27/the-string-type-is-broken/

(google search) (amazon search)