Powered By Blogger

Tuesday, April 17, 2012

Supporting Edit online in Windows 7

http://support.microsoft.com/kb/2123563
https://forums.alfresco.com/en/viewtopic.php?f=47&t=39521
https://issues.alfresco.com/jira/browse/ALF-4817
https://forums.alfresco.com/en/viewtopic.php?f=47&t=39521

We need to change the registry values



https://forums.alfresco.com/en/viewtopic.php?f=9&t=24171

Lucene Merge Factor

1. lucene.indexer.mergerMergeFactor=8

higher the value faster the response as in memory indexing increased
and the communication between disk and RAM is decreased.

2. Increase the number of open files allowed on machine
ulimit -n

Open files = (1+ mergefactor) * Filespersegment

3.http://wiki.alfresco.com/wiki/Index_Merging_Performance

Monday, April 16, 2012

MAT Usage

Dominator Tree
Inspector
attributes


Dominator Tree arranged based on Retain Size
Expand that it will show all the references
Java collections - Hash Entries

DOminator Tree can be grouped by Class
List Objects : Lists all the instances of the at class.

Object values will be shown.
show retained set : It shows responsible objects which keeps in memory.
It shows the class which users


Java collections : collections by size
It shows how memory used.

_____________________________________________________

Histogram

We can filter by regex.

Merger shortest path : checks who retains the objects. this
will help in analysing why this object is retained.

We can keep expanding tree.
We can see the value of primitive types

__________________________________________________


Java Collections
Group by value.
Helps in recognising string values.

Group by size : if the hashmap size is zero then we can remove that.

Use dominator.
__________________________

OQL : similar to SQL
Adhoc questions of jvm can be answered.

MAT

http://schneide.wordpress.com/2008/12/29/analyzing-java-heap-problems-part-2-using-eclipse-mat/http://kohlerm.blogspot.co.uk/2009/07/eclipse-memory-analyzer-10-useful.html

http://javaeesupportpatterns.blogspot.co.uk/2011/11/hprof-memory-leak-analysis-tutorial.html

http://java.dzone.com/news/how-fix-memory-leaks-java


http://vimeo.com/21356498

Latest mysql connector

http://dev.mysql.com/doc/refman/5.1/en/cj-news-5-1-x.html



It
is
recommended
that
you
use
the
fastest
physically
attached
disk
to
store
indexes.
SCSI
disks
are
preferred
over
IDE
disks. for faster indexing

Friday, April 13, 2012

Sample JVM Settings

export JAVA_OPTS="-Xms1024m -Xmx2048m -Xss1024k -XX:MaxPermSize=256m -XX:NewSize=256m -XX:+UseConcMarkSweepGC -Dalfresco.home=/opt/alfresco -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Djava.awt.headless=true"


export JAVA_OPTS="${JAVA_OPTS} -server"
export JAVA_OPTS="${JAVA_OPTS} -Xms6600m -Xmx6600m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=2990m -XX:ReservedCodeCacheSize=128m"
export JAVA_OPTS="${JAVA_OPTS} -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=80"
export JAVA_OPTS="${JAVA_OPTS} -Dalfresco.home=${ALF_HOME} -Dcom.sun.management.jmxremote -Dfile.encoding=UTF8"


http://javarevisited.blogspot.co.uk/2011/05/java-heap-space-memory-size-jvm.html