Showing posts with label command. Show all posts
Showing posts with label command. Show all posts

Mar 25, 2014

Fortinet or Foriclient for ubuntu >= 12.10

You can either run the regular executable or using the cli.

Download it from here : Latest Fortinet/Forticlient ftp download

You will need also to run this before
"sudo apt-get install libgtk2.0-0:i386"

That's it , for me it worked both ubuntu 12.10 and 13.10

Hope it helped
Dor

Nov 20, 2011

Override pom from command line

Hi Everyone,

I had this scenario but my solution catch them all.
I had this <skipTests>true</skipTests> in my pom.
Trying to "mvn -DskipTests=false test" => not good, it doesn't override the pom.

Solution:
Define a property like this
  <skip.my.tests>true</skip.my.tests>
Add it to the <properties> section

In the above example, i will replace it and it will look like this <skipTests>${skip.my.tests}</skipTests>

This is the solution for all the thing you want to override from command line.

Hoped it helped,

Dor

Dec 27, 2010

Websphere dump file analyaze

Download this file ha408.jar

Then run it using this command line for example:
"java -Xmx1200m -jar ha408.jar"

* The Xmx can be also 1024 or 512 it depends.

Than after the application is running, you can open the "*.phd" files from websphere to analyze.

Dor

Nov 23, 2010

get heap dump

get into command line.
use jmap tool which can be located within bin directory of your jdk installation directory.
you can run it alone and see all of its parameters or use this example:
"jmap -dump:format=b,file=heap.bin [pid]"
[pid] should be replaced with the appropriate process identifier (use task manager to get it).
Hopefully that helps a bit,
Dor

read heap dump

I suggest using eclipse MAT plug in, which can be found here.
After installing the plug in, use file->Open and open the heap.bin you have created (jmap for example).
It will take a while, depends on your computer hardware, but in the end, you would be able to analyaze this memory dump.
Hopefully it helps,
DOr