You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by Apache Wiki <wi...@apache.org> on 2013/02/05 16:38:38 UTC

[Marmotta Wiki] Update of "DevelopmentTricks" by SergioFernandez

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Marmotta Wiki" for change notification.

The "DevelopmentTricks" page has been changed by SergioFernandez:
http://wiki.apache.org/marmotta/DevelopmentTricks

Comment:
imported content

New page:
== Java Runtime configuration ==

It is recommended to customize some variables:

{{{
export JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError"
}}}

== Paths in Windows-based systems ==

In Windows some paths, the user home for instance, usually contain spaces, which could be problematic with some development environments. Therefore the recommendations are:

  * Place your LMF working copy under a path without spaces
    * Tomcat, and maybe other servlet containers, are not happy with such paths
  * Configure related tools (maven and so on) to use a home path also without spaces; these are some of the environment variables involved

== Database configuration ==

Internally LMF uses a relational database to persist the data using a custom and efficient schema. 

For instance, for creating such database in PostgreSQL you'd need to execute something like:

{{{
$ su
# su - postgres
$ psql 
postgres=# CREATE USER lmf WITH PASSWORD 'lmf';
postgres=# CREATE DATABASE lmf WITH OWNER lmf;
}}}

Then you'd need to configure the access to it, using the userConfig.properties file or through the web interface under LMF core.

== Performance ==

These [[PerformanceTuning|performance tricks]] may be of your interest.

== Maven ==

See [[Maven]] for further details.

== Hot Deployment / JRebel ==

See [[JRebel]] for further details.