Search This Blog

Friday 4 June 2010

Eclipse plugin development: running a plugin as an RCP application, custom problems view

The Eclipse framework comes with extremely powerful and reusable tools.
One of these is the problems view, which doesn't work (on Eclipse Galileo) when running the plugin as a RCP application.


Here comes a custom problem view simple and minimal implementation, as a replacement of the original one, for RCP plugins.

Thursday 3 June 2010

Oracle database, Monitoring open cursors

 Another great article of Natalka Roshak
http://www.orafaq.com/node/758
on how to monitor open (and cached) cursors

Tuesday 20 April 2010

Java, monitoring memory allocation

the JDK comes with a couple of tools which enables to monitor the memory which is being allocated during the execution of  JVM process.

jps which shows the JVM process currently running on the machine, together with their process id
jstat which print a dump of the memory consumption of a JVM process

syntax
jstat -gcutil  

Tuesday 6 April 2010

Alfresco in-production installation on Windows

Some tips about an in-production installation of Alfresco Community Release on a Windows 2003 server, 64 bit
  • install a 64bit JVM
  • install MySql
  • download the Alfresco community edition (3.2r2 at the moment of writing), preconfigured Tomcat bundle version (available from the custom installs page):
    • delete the mysql folder under the root folder
    • modify the startup script deleting the MySql start and stop sections
  • download and install the Windows Server 2003 resource toolkit
  • create a srvany.exe windows service in order to get Alfresco running as a Windows Service
  • optional: migrate a dev Alfresco environment by copying the alf_data directory and exporting the alfresco db schema (IMPORTANT: after having stopped the Alfresco server on both the installations)
  • enable the CIFS file server, disabling the File and Printer Sharing for the local area network connection in use. Note that on win64x you may some issues related to the CIFS file server leading to a  100% CPU consumption.
  • use a script to take a daily backup (run as a scheduled activity), something like
    FOR /f "tokens=1,2,3,4 delims=/ " %%a IN ('date /t') DO (
      SET FileDate=%%c-%%b-%%a
    )

    echo executing backup in date %FileDate%

    echo off
    xcopy C:\alfresco-community-tomcat-3.2r2\alf_data\* C:\backup\Alfresco\%FileDate%\alf_data\ /E /Y
    mysqldump -uroot -proot alfresco > C:\backup\Alfresco\db_data\alfresco_db_data_%FileDate%.sql

    pause

Friday 2 April 2010

create a Windows service

Here comes an useful description on how to get a program executed as a Windows service

http://support.microsoft.com/?scid=kb%3Ben-us%3B137890&x=10&y=8