<commit_before>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Setting the JVM Heap and other parameters\n",
    "Java allows you to configure the maximum heap size and various other settings with command line parameters when the JVM is started.  BeakerX allows you to add parameters to the JVM with environment variables.\n",
    "For example, before you start Juptyer run\n",
    "```\n",
    "export beakerx_groovy_java_arg=-Xmx6g\n",
    "```\n",
    "And then when the Groovy kernel is started, it will have a 6GB maximum heap instead of the default.  For other JVM languages, just substitute its name for \"groovy\".  If you want to add more than one argument, then give the extras numbers, like `beakerx_groovy_java_arg2=-Dmyproperty=100`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "5.726797824"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    " Runtime.getRuntime().maxMemory()/1e9"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "null"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "System.getProperty(\"myproperty\")"
   ]
  }
 ],
 "metadata": {
  "beakerx_kernel_parameters": {
   "classpath": [],
   "imports": [
    "com.twosigma.beaker.easyform.EasyForm",
    "com.github.lwhite1.tablesaw.api.ml.regression.*",<commit_msg>polish tutorial<commit_after>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Setting the JVM Heap and other parameters\n",
    "Java allows you to configure the maximum heap size and various other settings with command line parameters when the JVM is started.  BeakerX allows you to add parameters to the JVM with environment variables.\n",
    "For example, before you start Juptyer run\n",
    "```\n",
    "export beakerx_groovy_java_arg=-Xmx6g\n",
    "```\n",
    "And then when the Groovy kernel is started, it will have a 6GB maximum heap instead of the default.  For an other JVM language, just substitute its name for \"groovy\".  If you want to add more than one argument, then give the extras numbers, like `beakerx_groovy_java_arg2=-Dmyproperty=100`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "5.726797824"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    " Runtime.getRuntime().maxMemory()/1e9"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "100"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "System.getProperty(\"myproperty\")"
   ]
  }
 ],
 "metadata": {
  "beakerx_kernel_parameters": {
   "classpath": [],
   "imports": [
    "com.twosigma.beaker.easyform.EasyForm",
    "com.github.lwhite1.tablesaw.api.ml.regression.*",
{'fraction_non_alphanumeric': 0.15640796907523044, 'fraction_numerical': 0.014570324115373179, 'mean_word_length': 2.6926454445664105, 'pattern_counts': {'":': 58, '<': 3, '<?xml version=': 0, '>': 3, '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': '6311749', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1145, 'n_words': 287}