<commit_before>package com.tazine.jvm.exception;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * VM Args: -Xms20m -Xms20m -XX:+HeapDumpOnOutOfMemoryError
 * Heap Out of Memory 堆溢出情况
 *
 * @author frank
 * @date 2017/12/18
 */
public class HeapOOM {

    private String name = "frank";

    public static void main(String[] args) {
        List<HeapOOM> list = new ArrayList<>();
        while (true) {
            //try {
            //    TimeUnit.MILLISECONDS.sleep(100);
            //} catch (InterruptedException e) {
            //    e.printStackTrace();
            //}
            list.add(new HeapOOM());
        }
    }<commit_msg>feat (jvm) : oom 测试。<commit_after>package com.tazine.jvm.exception;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * VM Args: -Xms20m -Xms20m -XX:+HeapDumpOnOutOfMemoryError
 * Heap Out of Memory 堆溢出情况
 *
 * @author frank
 * @date 2017/12/18
 */
public class HeapOOM {

    private String name = "frank";

    public static void main(String[] args) {
        List<HeapOOM> list = new ArrayList<>();
        while (true) {
            try {
                //TimeUnit.MILLISECONDS.sleep(100);
                TimeUnit.SECONDS.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            list.add(new HeapOOM());
        }
    }
{'fraction_non_alphanumeric': 0.12833099579242638, 'fraction_numerical': 0.021739130434782608, 'mean_word_length': 2.1021739130434782, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '374212', 'n_tokens_mistral': 496, 'n_tokens_neox': 481, 'n_words': 100}