Skip to content

remove default memory setting #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions docs/content/pages/iblog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ http://www.scala-lang.org/.

# Introduction

Start the BLOG interactive shell using the `iblog` command. In the examples
below, lines prefixed with `scala>` are what you type into the shell. Lines
without that prefix are output printed by the shell.
Start the BLOG interactive shell using the `iblog` command. You could change the maximum Java heap size by typing `iblog -J-Xmx<The maximum Java heap size you want>`. For example, if you type

```text
iblog -J-Xmx1024M
```

Then the maximum Java heap size will be set to 1024M.
In the examples below, lines prefixed with `scala>` are what you type into the shell. Lines without that prefix are output printed by the shell.


# Example: Debugging Likelihood Weighting
Expand Down
10 changes: 7 additions & 3 deletions iblog.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
@echo off
if "%1"=="" set JAVA_OPTS=-Xmx4096M
set Param1=%1
if "%Param1:~0,6%"=="-J-Xmx" (
set JAVA_OPTS=%Param1:~2%
set Param1=
)
set BLOG_HOME=%~dp0..
echo Starting Interative Shell for BLOG
if exist "%BLOG_HOME%\bin\iblog.scala" (
set CPATH="%BLOG_HOME%\lib\java-cup-11b.jar;%BLOG_HOME%\lib\*"
scala -cp %CPATH% -i "%BLOG_HOME%\bin\iblog.scala" -J%JAVA_OPTS% %*
scala -cp %CPATH% -i "%BLOG_HOME%\bin\iblog.scala" -J%JAVA_OPTS% %Param1% %2 %3 %4 %5 %6 %7 %8 %9
) else (
set BLOG_DEVELOP_HOME=%~dp0
if NOT exist "%BLOG_DEVELOP_HOME%target\universal\stage\" (sbt\sbt.bat stage)
set CPATH="%BLOG_DEVELOP_HOME%target\universal\stage\lib\java-cup-11b.jar;%BLOG_DEVELOP_HOME%target\universal\stage\lib\*"
scala -cp %CPATH% -i "%BLOG_DEVELOP_HOME%src\main\scala\iblog.scala" -J%JAVA_OPTS% %*
scala -cp %CPATH% -i "%BLOG_DEVELOP_HOME%src\main\scala\iblog.scala" -J%JAVA_OPTS% %Param1% %2 %3 %4 %5 %6 %7 %8 %9
)