- Java VM Options You Should Always Use in Production
- Java HotSpot VM Options
- Troubleshooting Guide for Java SE 6 with HotSpot VM
- Garbage Collection (GC) Tuning Guide: https://confluence.atlassian.com/display/ATLAS/Garbage+Collection+(GC)+Tuning+Guide
- Javaworld article rather old but generations well explained
- Oracle's tuning guide for java 6
- tagtraum industries list of vm flags The initial developer of GCViewer collected quite a few vm options (up to java 1.5)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object HelloWorld { | |
def main(args: Array[String]) { | |
println("Hello, world!") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//byte c = byte(unbinary("00000000")); | |
byte c = byte(3); | |
println(binary(c)); | |
int pointer = 1; | |
//Spegne | |
//c &= ~(1 << pointer); | |
//Accende | |
//c |= (1 << pointer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<!-- | |
*************************************************** | |
* * | |
* DZ-Slides: HTML Template for your presentations * | |
* * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://daily-scala.blogspot.com/2010/01/regular-expression-3-regex-matching.html | |
val date = "11/01/2010" | |
val Date = """(\d\d)/(\d\d)/(\d\d\d\d)""".r | |
val Date(day, month, year) = date | |
println(day) | |
println(month) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Per ottenere gli ultimi mongos connessi al cluster | |
//Collegarsi ad un mongos | |
use config | |
//Stampa i mongos che hanno risposto al ping negli ultimi 5 minuti | |
db.mongos.find({ "ping" : { $gt : new Date((new Date) - 5 * 60 * 1000) }}).forEach(printjson) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JavaInitialising { | |
public static void main(String[] args) { | |
String[] anArray = {"One", "Two", "Three"}; | |
List<String> aList = Arrays.asList( | |
new String[]{"One", "Two", "Three"} | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |