Automatic translation

Archives

August 2008
The My Me J V S D
"July September "
A 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Contributors

OutOfMemoryError: diagnostic tools

Errors associated with a lack of memory is one of the obsession of the Java developer. One of two things, an increase in the volume of allocated memory solves the problem permanently, or it only delayed the day and that's when things get tough!

The good old debugger can not help us for this kind of diganostic, it does not produce useful information about the actual use of memory. It is of course possible to generate a memory dump (with a 'kill -3' under Linux), however, the result can be quite cumbersome to analyze. Recently faced such a problem, I realized that Sun provides with its JDK a set of tools to solve many problems. These tools are available since JDK version 1.5, they are not suportés by Sun and only work on some platforms: Linux, Solaris, Mac OS, not Windows ... Here is a summary of opportunities to diagnose a memory leak problem.

. . . → Read more: OutOfMemoryError: diagnostic tools

Towards the end of the extension environment?

Introduced with version 4.3.1 of Liferay , Liferay plugin SDK has been continuously improved to be placed, with its version 5.1, a true competitor to the environment extension. As a reminder, Liferay offers two methods of development:

  • The environment extension, the historical method which allows customization and a push-up overload the portal and portlet development.
  • The plugin SDK, introduced with version 4.3.1 of Liferay, which aimed to provide a lightweight tool for developing Liferay portlets and themes.

If the targets were defined between the two methods, version 5.0.1 (RC output only) and 5.1 change the situation. Now, the SDK of Liferay is assigned new features:

  • ServiceBuilder availability for development of the business layer portlets via an approach MDA .
  • Introduction of a new type of plugin: the hooks.

Features previously available from the SDK returned well within the framework of a tool for development with Liferay, but the hooks go even further and now offer opportunities to overload functionality of the portal, an area up then reserved for the environment ... With the expansion hooks, it is possible to:

. . . → Read more: Toward the end of the extension environment?