jruby – Get Version Information

Background

As part of a troubleshooting session that I will be undertaken I wanted to start getting familiar with what jruby has in terms of API for discovering the Java Version that it is running under.

Code

Ruby

Version.rb


require 'date'

require 'java'

require 'rbconfig'
include RbConfig

require 'io/console'

java_import java.lang.System

class Version

    # ruby class variables are prefixed with '@@' .
    @@javaRTVersion = "";
    @@rubyPlatform = "";
    @@hostOS = "";
    @@acquired = false;

    #Constructor
    def initialize()

    end

    def self.acquire

        @@javaRTVersion = System.getProperties["java.runtime.version"]

        @@rubyPlatform = RUBY_PLATFORM

        @@hostOS = CONFIG['host_os']

    end 

    # hostOS
    def self.hostOS

        if (@@acquired == false)

            self.acquire()

            @@acquired = true

        end

        return @@hostOS

    end 

    # java runtime version
    def self.javaRTVersion

        if (@@acquired == false)

            self.acquire()

            @@acquired = true

        end

        return @@javaRTVersion

    end     

    # the getter is defined to return the class variable when called
    def self.rubyPlatform

        if (@@acquired == false)

            self.acquire()

            @@acquired = true

        end

        return @@rubyPlatform

    end 

end

def waitForKeyPress

    puts
    puts

    puts "Press enter to continue"

    STDIN.getch()

end 

objV = Version.new()

# Access it's attributes.
puts
puts "hostOS is " + Version.hostOS
puts "javaRTVersion is " + Version.javaRTVersion
puts "rubyPlatform is " + Version.rubyPlatform

waitForKeyPress()

Command File

Objective

Ran again JDK 1.8, 1.9 ( v9 ) and 1.10 ( v10 ).

initiate.cmd


setlocal

REM SET JAVA_HOME to Version 1.8
rem set "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181"
rem set "JAVA_HOME=C:\Program Files\Java\jdk-9.0.4"
set "JAVA_HOME=C:\Program Files\Java\jdk-10.0.2"

set "JRUBY_BIN=C:\Downloads\jruby\v9.2\zip\jruby-dist-9.2.0.0-bin\jruby-9.2.0.0\bin"

set "_app=Version.rb"

%JRUBY_BIN%\jruby.bat "%_app%"

endlocal

Output

JDK 1.8

javaVersion_run_1DOT8_20180816_0435AM

JDK 1.9

Image

javaVersion_run_1DOT9_20180816_0439AM

Textual


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.runtime.encoding.EncodingService to field java.io.Console.cs
WARNING: Please consider reporting this to the maintainers of org.jruby.runtime.encoding.EncodingService
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

hostOS is mswin32
javaRTVersion is 9.0.4+11
rubyPlatform is java

JDK 1.10

Image

javaVersion_run_1DOT10_20180816_0445AM

Textual


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.runtime.encoding.EncodingService to field java.io.Console.cs
WARNING: Please consider reporting this to the maintainers of org.jruby.runtime.encoding.EncodingService
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

hostOS is mswin32
javaRTVersion is 10.0.2+13<span id="mce_SELREST_start" style="overflow:hidden;line-height:0;">&#65279;</span>
rubyPlatform is java

jruby – Sample App – Classes – blackBook

Background

Now that we have jruby installation out of the way let us create a simple app that creates a class.

BTW, our jruby Installation post is here.

 

Code

blackbook.rb


###############################################
#Foundational Sample Script
#https://gist.github.com/dougal/24876
###############################################
require 'date'

class Blackbook

    #Declare Accessor Methods   
    attr_accessor :name, :relationship, :dateAdded

    
    # ruby class variables are prefixed with '@@' .
    # set number of entries
    @@iNumberofEntries = 0;
    
    #Constructor
    def initialize(name, relationship, dateAdded)
    
        @name = name
        @relationship = relationship
        @dateAdded = dateAdded
        
        #Increment number of entries
        @@iNumberofEntries = @@iNumberofEntries + 1
        
    end
  
    # Class Method numberofEntries
    # Returns Class Variable @@iNumberofEntries
    def self.numberofEntries
    
        return @@iNumberofEntries
        
    end  
    
end

# Get Current Date
dtNow = Time.now

# Date Formats
dateFormat="%b %d %Y"
dateFormatYYYYMMDD="YYYYMMDD"

# Create the new instance ( Prince Charles)
dob = "19481114"
dobCharles = Date.parse(dob);
entryCharles = Blackbook.new('Charles', 'Prince', dobCharles)

# Access it's attributes.
puts "Entry Name is " + entryCharles.name
puts "Relationship is " + entryCharles.relationship
puts "Date Added is " + entryCharles.dateAdded.strftime(dateFormat);
puts ""

# Create the new instance ( Lady Diana )
dob = "19610701"
dobDiana = Date.parse(dob);
entryDiana = Blackbook.new('Diana', 'Princess', dobDiana)

# Access it's attributes.
puts "Entry Name is " + entryDiana.name
puts "Relationship is " + entryDiana.relationship
puts "Date Added is " + entryDiana.dateAdded.strftime(dateFormat);
puts ""

#Get Number of entries
strNumberofEntries = Blackbook.numberofEntries.to_s
puts "Number of entries in black book " + strNumberofEntries

invoke.cmd


setlocal

REM SET JAVA_HOME to Version 1.8
set "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181"
rem set "JAVA_HOME=C:\Program Files\Java\jdk-9.0.4"
REM set "JAVA_HOME=C:\Program Files\Java\jdk-10.0.2"

set "JRUBY_BIN=C:\Downloads\jruby\v9.2\zip\jruby-dist-9.2.0.0-bin\jruby-9.2.0.0\bin"

set "_app=blackbook.rb"

%JRUBY_BIN%\jruby.bat "%_app%"

endlocal

output

jruby – Installation and Hello World App

Background

Because of a side trek down the ElasticSearch road, specifically Logstash, wanted to develop a more congruent understanding of jruby.

Here we go.

jruby

per-requisite

Java JDK

Java JDK v1.8

Please download and ensure that Java’s JDK version 1.8 is downloaded and installed.

BTW, here is the link to Java JDK v1.8.

 

Artifact

jruby is available here.

Here is a current screen shot.

Image

 

Tabulate

Here is a quick break down:

Package OS Platform Packaging Installation
JRuby 9.2.0.0 Binary .tar.gz Linux Binary Unzip/Extract
JRuby 9.2.0.0 Binary .zip Windows Binary Unzip/Extract
JRuby 9.2.0.0 Windows Executable Windows Install4j Wizard  – x32 bit Run Installer
JRuby 9.2.0.0 Windows Executable (x64) Windows Install4j Wizard – x64 bit Run Installer
JRuby 9.2.0.0 Source .zip Multi-Platform Source Code Extract
JRuby 9.2.0.0 Complete .jar Multi-Platform Jar File Copy
JRuby-jars 9.2.0.0 .gem

 

Explanation

  1. Windows Executable
    • Most MS Windows users should go with the Windows Executable
    • Depending on OS bitness, please go with 32 or 64 bit
  2. Binary
    • Infrequent or Evaluation users should go with Binary Zip
  3. Source
    • Developers should go with the Source Code
  4. Complete Jar
    • OEM

 

Choice

We went the “Binary Zip” Route.

Download

Downloaded “jruby-dist-9.2.0.0-bin.zip

 

Extract

Using 7-Zip extracted the zip file.

Here is what our extracted folders look like.

 

Coding

Let us write a very simple script.

Hello World

Code

Ruby Source Code


# Beginner Ruby App
# https://en.wikibooks.org/wiki/Ruby_Programming/Hello_world
puts 'Hello, world!'

# Query Environment Variables
userDomain=ENV["USERDOMAIN"]
username=ENV["USERNAME"]

# Concatenate User Domain and Username
yourName=userDomain + '\\' + username

# Display Output
puts 'Your Full Username is ' + yourName



 

Invoke

Command File to initiate jruby script.


setlocal

REM SET JAVA_HOME to Version 1.8
set "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181"
rem set "JAVA_HOME=C:\Program Files\Java\jdk-9.0.4"
rem set "JAVA_HOME=C:\Program Files\Java\jdk-10.0.2"

set "JRUBY_BIN=C:\Downloads\jruby\v9.2\zip\jruby-dist-9.2.0.0-bin\jruby-9.2.0.0\bin"

set "_app=helloWorld.rb"

%JRUBY_BIN%\jruby.bat "%_app%"

endlocal


 

Output

Here is the output of invoking the script.

Linux – Profiling System Resource Utilization – Day 1

Background

Since we are already talking about profiling Applications, let us quickly highlight some of the available tools for measuring Application Resource Utilization on a Linux box.

Terminology

  1. Memory
    • buffer
      • Amount of memory that is buffered. In simple words, buffers are used for caching of filesystem metadata (permissions, location, etc.) and tracking in-flight pages. ( Link )
    •  cache
      • Amount of memory that is cached. Cache contains data that has already been read from the disk and is kept in memory for possible future use, f.e a pdf file or web browser pages. ( Link )

Outline

  1. top ( Link )
  2. sar ( Link )
  3. free ( Link )
  4. iostat ( Link )

top

The “top” command lists the processes running on a Linux box.

top stands for “Table of Processes“.

Sample Reading

MySQL

Here are sample outputs from a MySQL Box.

Sample #1
Image

top_linux_mysql_20180812_0531PM.PNG

Output
  1. Our box has been up for 14 days
  2. CPU
    • User :- 0.2%
    • System :- 0.5%
    • Nice :- 0%
    • Idle :- 99.2%
  3. Memory
    • Mem: 1872716k total, 1598392k used, 274324k free, 204700k buffers
      • Total :- 1872716k ( 1872 MB / 1.82 GB )
      • Used :- 1598392k ( 1598 MB / 1.60 GB )
      • Free :- 274324k ( 274 MB )
  4. Swap
    • Swap: 1048572k total, 87176k used, 961396k free, 578420k cached
      • Total :-1048572K ( 1048.572 MB / 1.05 GB )
      • Used :- 87176k ( 87 MB  )
      • Free :- 961396k ( 961 MB )
  5. Processes
    • Process /MySQL
      • PID ( Process ID )
      • USER
        • MySQL
      • PR ( User Priority )
        • 20
      • NI ( Nice )
        • 0
      • VIRT ( Virtual Memory )
        • 1789 MB
          • Our database server, MYSQL, requested 1800 MB
      • RES ( Resident Memory )
        • 568 MB
          • Our database server, MYSQL, is using actual memory of 568 MB
      • SHR ( How much of Total Virtual Memory this process is sharing with others)
        • 6048
        • What is the measurement?
      • S ( Process State )
      • %CPU
      • %MEM
      • TIME+
      • COMMAND

Functionalities

Outline

  1. Order By

Order By

To review or change the ordering please press the Shift-O button.

The “Current Sort Field” window appears.

Image

top_sort_20180813_0316AM

Please review the available sort fields and press the corresponding character.

sar

Definition

The sar common stands for “System Activity Report“.

Options

Memory-rMemory free, usedsar -r

Objective Option Description Sample
Processor Cumulative -p Processor Cumulative sar -P ALL
Processor Detail -P Process All or Specific sar -P ALL
Processor Run Queue and Load Average -q Reports run queue and load average sar -q
Swap Space Utilization -S Swap space utilization sar -S
Storage I/O -b Storage IO Transactions ( Count & Bytes) sar -b
Storage I/O @ Block Device Level -d IO Transactions ( Count & Bytes) sar -d
Network -n Network sar -n DEV

Scenarios

Review current Days report.

Outline

Get Stats for current day.

Code

sar

Output

linux_db2_20180813_0338AM.PNG

Explanation
  1. CPU
    • All available CPU
  2. %user
    • User applications CPU Percentile usage
  3. %nice
    • CPU Percentile usage attributed to applications running under “nice” mode
  4. %System
    • % CPU by system applications ( Kernel, device drivers )
  5. %iowait
    • % CPU Idle waiting for I/O completion
    • References
      • Red Hat Enterprise Linux – What Is the Meaning of %iowait as Reported by Utilities Such as sar or top?
        Link

Review past reports

Outline

Get Stats for the 7th day of the current Month

Code

sar -p -f /var/log/sa/sa07

Output

linux_db2_20180812_0957PM

Review CPU Utilization full and individualized

Outline

Get Stats for current day.

Code

sar -P ALL 

Output

linux_db2_20180814_0341AM

Explanation
  1. CPU
    • All available CPU
  2. %user
    • User applications CPU Percentile usage
  3. %nice
    • CPU Percentile usage attributed to applications running under “nice” mode
  4. %System
    • % CPU by system applications ( Kernel, device drivers )
  5. %iowait
    • % CPU Idle waiting for I/O completion
    • References
      • Red Hat Enterprise Linux – What Is the Meaning of %iowait as Reported by Utilities Such as sar or top?
        Link

Review Memory Utilization

Outline

Get Stats for current day.

Code

sar -r 

Output

sar-r-20180814-0347AM.PNG

Explanation
  1. kbmemfree
    • Free Memory in KB
  2. kbmemused
    • Used Memory in KB
  3. %memused
    • Percentile ( %) of Memory Used
  4. kbbuffers
    • Buffers for disk writes
  5. kbcached
    • Used as cached for disk reads
  6. kbcommit
    • Amount of Memory needed for current workload.  Total Memory needed to ensure that we do not run out of Memory.
  7. %commit
    • % Total Memory that is actually in use per current workload

Review Swap Space Utilization

Outline

Get Swap Space for current day.

Code

sar -S 

Output

sar-S-20180814-0755AM.PNG

Explanation
  1. kbswpfree
    • Free Swap Space in KB
  2. kbswpused
    • Used Swap Space in KB
  3. %swpused
    • Percentile ( %) of Swap Space Used
  4. kbswpcad
    • Amount of cached swap memory in kilobytes. This is memory that once was swapped out, is swapped back in but still also is in the swap area (if memory is needed it doesn’t need to be swapped out again because it is already in the swap area. This saves I/O). ( Link )
  5. %swpcad
    • Percentage of cached swap memory in relation to the amount of used swap space. ( Link )

Review I/O Transfer Rates

Outline

Get I/O Transfer rates and read and writes blocks.

Code

sar -d -f /var/log/sa/sa07 

Output
sar-d_20180814_0924AM.PNG
Explanation
  1. DEV
  2.  tps
    • Total number of transfers per second that were issued to physical devices. A transfer is an I/O request to a physical device. Multiple logical requests can be combined into a single I/O request to the device. A transfer is of indeterminate size. ( Link )
  3. rd_sec/s
    • Number of read requests per second
  4. wr_sec/s
    • Number of writes per second
  5. avgrq-sz
    • The average size (in sectors) of the requests that were issued to the device. ( Link )
  6. avgqu-sz
    • Average Queue Size
    • The average queue length of the requests that were issued to the device. ( Link )
  7. await
    • The average time (in milliseconds) for I/O requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them. ( Link )
  8. svctm
    • The average service time (in milliseconds) for I/O requests that were issued to the device. Warning! Do not trust this field any more. This field will be removed in a future sysstat version. Percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100%. ( Link )
  9. %util
    • Percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100%. ( Link )
Outline

Get I/O Transfer rates and read and writes blocks and in print friendly mode.

  1. sar -dp
    • Option
      • d is disk
      • p is print friendly
    • Crediting
      • Community Home Servers and Operating Systems Operating System – Linux System Administration “sar -d” devices – how to map to /dev/sdNNN device…
        Link
Code

sar -dp -f /var/log/sa/sa07 

Output

sar-dp_20180814_1140AM.PNG

Review I/O Transfer Rates

Outline

Get I/O Transfer rates and read and writes blocks.

Code

sar -b 

Output
sar-b-20180814-0810AM.PNG
Explanation
  1. tps
    • Total number of transfers per second that were issued to physical devices. A transfer is an I/O request to a physical device. Multiple logical requests can be combined into a single I/O request to the device. A transfer is of indeterminate size. ( Link )
  2. rtps
    • Number of read requests per second
  3. wtps
    • Number of writes per second
  4. bread/s
    • Number of sectors read per second.  A sector is 512 bytes  ( Link )
  5. bwrtn/s
    • Number of sectors written per second.  A sector is 512 bytes ( Link )

Reports run queue and load average (sar -q)

Outline

This reports the run queue size and load average of last 1 minute, 5 minutes, and 15 minutes.

Code

sar -q 

Output

sar-q_linux_db2_20180814_1217PM.PNG

Explanation
  1. runq-sz :- Run Queue Size
  2. plist-sz :- Process List
  3. ldavg-1 :- Load Average Size taken 1 minute ago
  4. ldavg-5 :- Load Average Size taken 5 minutes ago
  5. ldavg-15 :- Load Average Size taken 15 minutes ago
  6. blocked :- Number of blocked tasks

Reports run queue and load average (sar -n)

Outline

This reports the run queue size and load average of last 1 minute, 5 minutes, and 15 minutes.

Code

sar -n DEV -f /var/log/sa/sa07 -s 18:00:00 -e 23:59:00 | grep 'IFACE\|eth0'

Output

sar-n-DEV-linux_db2_20180814_1250PM

Explanation
  1. IFACE
    • Interface
  2. rxpck/s
    • Receive packets
  3. txpck/s
    • Transmit packets
  4. rxkB/s
    • Receive Kb/s
  5. txkB/s
    • Transmit Kb/s
  6. rxcmp/s
  7. txcmp/s
  8. rxmcst/s


Free

Definition

Display amount of free and used memory in the system.

Outline

Review Memory usage.

Usage

Usage – Raw Data

Code

free

Output

free_linux_db2_20180814_04432AM.PNG

Explanation
  1. total
    • Total Memory
  2. used
    • Used Memory
  3. free
    • Free Memory
  4. shared
    • Shared Memory
  5. buffers
    • Memory allotted for writing
  6. cached
    • Memory allotted for reading

Usage – Human Readable

Code

free -h

Output

free_linux_db2_-h_20180814_0732AM.PNG

iostat

Definition

Reports IO Statistics.

Outline

Review IO Statistics on each device.

Usage

Usage – Raw Data

Code

iostat -N

Output

iostat_db2_linux_20180815_0506PM.PNG

 

Explanation
  1. Summary
    • Average CPU
      • User
        • 7.4%
      • System
        • 2.51%
  2. Detail
    • Device
      • data1-db2data–11
        • tps :- 226.42
        • Blk_read/s :- 23254.73
        • Blk_wrtn/s :- 347.39
        • Blk_read :- 35060914332
        • Blk_wrtn :- 523763058
      • data1-dbbackup–11
        • tps :- 796.31
        • Blk_read/s :- 5785.45
        • Blk_wrtn/s :- 6187.70
        • Blk_read :- 8722664698
        • Blk_wrtn :- 9329126392

References

  1. BooleanWorld
    • Top Command
      • A Guide to the Linux Top Command
        Link
  2. Lily Feng
    • Top Command
      • The difference among VIRT, RES, and SHR in top output
        Link
  3. nixCraft
    • How do I Find Out Linux CPU Utilization?
      Link
  4. Ramesh Natarajan
    • The Geek Stuff
      • 10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring
        Link
  5. Neeraj Bhatia
    • Linux Memory Utilization
      Link
  6. Lisenet
    • Tomas
      • Measure and Troubleshoot Linux Memory Resource Usage
        Link
  7. HowtoForge
    • Linux Free Command Explained for Beginners (6 Examples)
      Link
  8.  stackExchange
    • top
      • Top – what does Virtual memory size mean? …linux/ubuntu
        Link
      • Process ‘niceness’ vs. ‘priority’
        Link
  9. serverfault
    • top
      • Memory Usage Numbers In top/htop
        Link
  10. Quora
    • top
      • What is the difference between the NI and PR values in the top(1) command’s output? I know NI is the nice value, which ranges from -19 to 20, but what is the significance of PR value?
        Link

Thamo Naidoo

 

Background

A perspective, critical, and insider look at the Apostolic movement.

 

Videos

  1. Developing Hebronic Communities of Love (Oneness) Session 1
    • Community of the Beloved
      Published  On :- 2018-August-14th
      Link
    • POA KZN 12 APR – Thamo Naidoo – Developing Hebronic Communities of Love (Oneness) Session 1
      Channel :- ApostolicGate Media
      Published  On :- 2017-April-15th
      Link
    • POA KZN 12 APR – Thamo Naidoo – Developing Hebronic Communities of Love (Oneness) Session 2
      Channel :- ApostolicGate Media
      Published  On :- 2017-April-15th
      Streamed Live from Southern Sun, Elangeni, Durban
      Link
  2. Perspectives on the Apostolic KZN – Thamo Naidoo –
    • Perspectives on the Apostolic KZN – Thamo Naidoo – Apostles and Apostolic Communities Session 3
      Channel :- ApostolicGate Media
      Published  On :- 2017-March-16th
      Link
    • Perspectives on the Apostolic KZN – Thamo Naidoo – The Feast of Tabernacles Session 2
      Channel :- ApostolicGate Media
      Published  On :- 2017-March-16th
      Link
    • Perspectives on the Apostolic KZN – Thamo Naidoo – Apostles and Apostolic Communities Session 1
      Channel :- ApostolicGate Media
      Published  On :- 2018-June-21st
      Link
  3. POA GAU 15 MAR – Thamo Naidoo – Profile of an Apostolic People
    • POA GAU 15 MAR – Thamo Naidoo – Profile of an Apostolic People – A case study of Judah Session 1
      Channel :- ApostolicGate Media
      Published  On :- 2017-March-16th
      Link

 

Revelations 6:6 – “A quart of wheat for a denarius, and three quarts of barley for a denarius, and do not harm the oil and wine!”

Background

I was listening in on Thoma Naidoo video “Perspectives on the Apostolic KZN – Thamo Naidoo – The Feast of Tabernacles Session 2“.

In his video, I heard him refer to our title verse.

Emanuel Swedenborg

Here is “Emanuel Swedenborg” take:

Author: E. Swedenborg (1688-1772).
Design: I.J. Thompson, Feb 2002.
Spiritual Meaning of REVELATION 6:6
Bible Meanings
Link

 

A measure of wheat for a penny, and three measures of barley for a penny

  1. A measure of wheat for a penny, and three measures of barley for a penny, signifies because the estimation of good and truth is so small as to be scarcely anything. These are signified because by “a measure (choenix)” which was the measure and the quantity measured, is signified quality, as in ; by “wheat” and “barley” is signified good and truth; and by a penny (denarius) which is a very small coin, that they are held in little or no estimation. It is said “three” measures of barley, because “three” signify all, and are predicated of truths.
  2. The reason why “wheat” and “barley” signify good and truth, here the good and truth of the church from the Word, is, because all things which belong to the field and the vineyard, signify such things as are of the church, because “a field” signifies the church as to good and truth thence, and “a vineyard,” the church as to truth and good therefrom; therefore where these are mentioned in the Word
  3. Joel
    • the angels, who perceive all things spiritually, understand nothing else; as in Joel:–
    • The field is wasted, the land mourneth; for the corn is wasted; the must is dried up, the oil languisheth. Be ye ashamed, O ye husbandmen; howl, O ye vine dressers, for the wheat and the barley; because the harvest of the field is perished ( Joel 1:10-12 ).
  4. Matthew
    • All these things signify such things as are of the church. That “wheat” and “barley” signify the good and truth of the church, may be seen from these passages:–
    • John saith concerning Jesus, that He will gather the wheat into the barn, and burn up the chaff with fire (Matt. 3:11, 12).
    • Jesus said, Let the tares and the wheat grow together, and in the time of harvest I will say to the reapers, Gather ye together first the tares, to burn, but gather the wheat into My barn (Matt. 13:24-30).
  5. Isaiah
    • I have heard the consummation and decision from Jehovah God; he layeth up the measured wheat, and the appointed barley; for his God doth instruct him to judgment, and doth teach him (Isa. 28:22, 25, 26).
  6. Deuteronomy
    • Jehovah shall lead thee to a land of wheat and barley (Deut. 8:7, 8).
    • “A land of wheat and barley” here is the land of Canaan, by which the church is signified.
  7. Jeremiah
    • They shall come and sing in the height of Zion, and shall flow together to the goodness of Jehovah, for wheat and must (Jer. 31:12).
  8. Jehovah shall satiate thee with the fat of wheat (Deut. 32:13, 14; Psalm. 81:16; 147:14).
  9. Ezekiel
    • Jehovah said to the prophet Ezekiel, that:–
      • He should make himself cakes of barley mixed with dung, and eat them (Ezek. 4:12, 15).
  10. Hosea
    • And to the prophet Hosea that:–
      • He should take a woman an adulteress; whom be bought for a homer of barley, and half a homer of barley (Hosea 3:1, 2).

 

And, hurt not the oil and wine

And hurt not the oil and the wine, signifies that it is provided by the Lord that the holy goods and truths, which lie interiorly concealed in the Word, shall not be violated and profaned. “Oil” signifies the good of love, and “wine” truth from that good, therefore “oil” signifies holy good, and “wine” holy truth; “hurt them not,” signifies that it is provided by the Lord that they shall not be violated and profaned; for this was heard “from the midst of the four animals,” thus from the Lord ; what is said by the Lord the same is also provided for by Him; that it is provided, may be seen in . That “oil” signifies the good of love, will be seen below; but that “wine” signifies truth from that good, is evident from the following passages:–

  1. Isaiah
    • Everyone that thirsteth, come ye to the waters, and he that hath no silver, come ye, buy and eat, yea come, buy wine and milk without silver (Isa. 55:1).
  2. Joel and Amos
    • And it shall come to pass in that day, that the mountains shall drop down must, and the hills shall flow with milk (Joel 3:18; Amos 9:13, 14).
  3. Jeremiah
    • And joy is taken away from Carmel, and in the vineyards there shall be no singing; wine shall not be trodden in the wine-press, I have made their shouting to cease (Isa. 16:10; Jer. 48:32, 33).
      • By “Carmel” is signified the spiritual church, because vineyards were there.
  4. Joel
    • Howl, all ye drinkers of wine, because of the must; for it is cut off from your mouth; howl, O ye vine dressers (Joel 1:5, 10, 11).
  5. Nearly the same words occur in (Hosea 9:2, 3; Zephaniah 1:13; Lamentations 2:11, 12; Micah 6:15; Amos 5:11; Isaiah 24:6, 7, 9, 11.
  6. He washeth his garments in wine and his covering in the blood of grapes; his eyes are red from wine (Gen. 49:11, 12).
    • These things are concerning the Lord; “wine” signifies Divine truth. This is the reason why the Holy Supper was instituted by the Lord, in which the bread signifies the Lord as to the Divine good, and the wine the Lord as to the Divine truth, and with the recipients the bread signifies holy good, and the wine, holy truth, from the Lord; therefore He said:–
    • I say unto you, I will not drink henceforth of this product of the vine, until the day when I shall drink it with you in My Father’s kingdom (Matt. 26:29; Luke 22:18).
  7. Melchizedek
    • Because “bread and wine” had this signification, therefore, also:–
      • Melchizedek, going to meet Abram, brought forth bread and wine, and he was the priest of the most high God, and he blessed Abram (Gen. 14:18, 19).
  8. Similar is the signification of the meal-offering and drink-offering, in the sacrifices, concerning which see (Exodus 29:40; Leviticus 23:12, 13, 18, 19; Numbers 15:2-15; 28:6, 7, 18; 29:1-7). The meal-offering was of fine Sour of wheat, and was therefore instead of bread, and the drink-offering was of wine. From which it may appear what is signified by these words of the Lord:–
  9. Matthew & Luke
    • Neither do men put new wine into old bottles, but they put new wine into new bottles, and both are preserved (Matt. 9:17; Luke 5:37).
  10. “New wine” is the Divine truth of the New Testament, thus of the new church, and “old wine” is the Divine truth of the Old Testament, thus of the old church. Similar is the signification of these words of the Lord at the marriage in Cana of Galilee:-
    • Every man at first setteth forth good wine, and when men have had enough, the worse; thou hast kept the good wine until now (John 2:1-10).
  11. The Good Samaritan
    • The like is also signified by “wine” in the Lord‘s parable of the man that was wounded by robbers, that:–
    • The Samaritan poured oil and wine into his wounds (Luke 10:33, 34).
    • For by him that was “wounded by robbers,” are meant they who are spiritually wounded by the Jews by evils and falsities, to whom the Samaritan gave assistance “by pouring in oil and wine” into his wounds, that is, by teaching good and truth, and, so far as he was able, by healing.
    • Holy truth is also signified by “must” and “wine” in other parts of the Word (Isaiah 1:21, 22; 25:6; 36:17; Hosea 7:4, 5, 14; 14:6-8; Amos 2:8; Zechariah 9:15, 17; Psalms 104:14, 15). Hence it is that “a vineyard,” in the Word, signifies a church that is in truths from the Lord.
  12. That “wine” signifies holy truth, may also appear from its opposite sense, in which it signifies truth falsied and profaned; as in these passages:–
    • Whoredom, and wine, and must, occupy the heart. Their wise has failed, they have committed whoredom continually (Hos. 4:11, 17, 18).
    • “Whoredom” signifies the falsification of truth, as do “wine and must” here.
    • In the hand of Jehovah is a cup, and He hath mixed it with wine; He hath filled it with mixture, and poureth it out, and the dregs of it all the wicked of the earth suck out and drink (Psalm. 75:8).
    • Babylon is a cup of gold in the hand of Jehovah that maketh all the earth drunken; the nations have drunken of her wine; therefore they are insane (Jer. 2:7).
    • Babylon hath fallen, because she made all nations drink of the wine of the anger of her whoredom. If anyone adore the beast, he shall drink of the wine of the anger of God, which is prepared unmixed in the cup of the anger of God (Apoc. 14:8-10).
    • Babylon hath made all nations drink of the wine of her whoredom (Apoc. 18:3).
    • Great Babylon came in remembrance before God, to give unto her the cup of the wine of the fury of the anger of God (Apoc. 16:19).
    • The inhabitants of the earth have been made drunk with the wine of her whoredom (Apoc. 17:1, 2).
    • By the wine which Belshazzar, king of Babylon, and his magnates, and wives, and concubines, drank out of the vessels of the temple of Jerusalem, and at the same time:–
    • They praised the gods of gold, and of silver, of brass, of iron, of wood, and of stone (Dan. 5:2-4),
    • nothing else is meant than the holy truth of the Word and of the church profaned. Wherefore the writing then appeared upon the wall, and the king was slain that night (Dan. 5:25, 30). “Wine” signifies truth falsified also in (Isaiah 5:11, 12, 21, 22; 28:1, 3, 7; 29:9; 56:11, 12; Jeremiah 13:12; 23:9, 10). The same is signified by the drink-offering which they offered to idols (Isaiah 65:11; 57:6; Jeremiah 7:18; 44:17-19; Ezekiel 20:28; Deuteronomy 32:38). That “wine” signifies holy truth, and, in the opposite sense, truth profaned, is from correspondence; for the angels, who perceive all things spiritually, understand nothing else, when man reads “wine” in the Word; such a correspondence is there between the natural thoughts of men and the spiritual thoughts of angels. It is similar with the wine in the Holy Supper, and hence it is, that introduction into heaven is effected by the Holy Supper (n. 224).

On MS Windows, Profiling Java Apps Memory Utilization Using VMMap

Background

In our last post, we covered the usage of a few Oracle standard tools to profile Java Applications.

BTW the referenced post is available here.

 

SysInternals

VMMap

In this post, we will briefly cover using SysInternal’s VMMap GUI to track down memory utilization.

 

Artifact

VMMap is available from here.

The current version is v3.21 and it was released a couple of years ago; July 20, 2015 to be exact.

Download & Extract

Download and Extract it; no need for installation.

Usage

ElasticSearch

Select or Launch Process

 

Metrics

 

WebSphere

Select or Launch Process

 

Metric