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
package memleak; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class MemLeak1 { | |
final String key ; | |
public MemLeak1(String key) { | |
this.key = key; |
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
java.lang.OutOfMemoryError: GC overhead limit exceeded | |
Dumping heap to java_pid1505.hprof … | |
Heap dump file created [13447490 bytes in 0.109 secs] | |
Exception in thread “main” java.lang.OutOfMemoryError: GC overhead limit exceeded | |
at memleak.MemLeak1.main(MemLeak1.java:27) |
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 SynchonizationLab implements Runnable { | |
final private MyLock lock; | |
SynchonizationLab(MyLock lock) { | |
this.lock = lock; | |
} | |
@Override | |
public void run() { |
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
Thread-0 is waiting for Lock 1 | |
Thread-3 is waiting for Lock 2 | |
Thread-2 is waiting for Lock 1 | |
Thread-5 is waiting for Lock 2 | |
Thread-4 is waiting for Lock 2 | |
Thread-1 is waiting for Lock 1 |
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 Deadlock { | |
static class Friend { | |
private final String name; | |
public Friend(String name) { | |
this.name = name; | |
} | |
public String getName() { | |
return this.name; | |
} | |
public synchronized void bow(Friend bower) { |
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
package com.augmentis.ayp.crimin.model; | |
import android.content.Context; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import android.util.Log; | |
import com.augmentis.ayp.crimin.model.CrimeDbSchema.CrimeTable; | |
/** |
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://controller:6080/vnc_auto.html?token=3c16709b-8abd-42f6-9ed2-30c4d2bfaa66 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
LOGBack example | |
--> | |
<configuration> | |
<!-- console appender --> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> |
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
[log] | |
date = relative | |
[format] | |
pretty = format:%C(Yellow)%h%Creset %Cblue%ad%Creset %Cgreen%ae%Creset %Cred%d%Creset %s |
OlderNewer