Andrew Cooke | Contents | Latest | RSS | Previous | Next

C[omp]ute

Welcome to my blog, which was once a mailing list of the same name and is still generated by mail. Please reply via the "comment" links.

Always interested in offers/projects/new ideas. Eclectic experience in fields like: numerical computing; Python web; Java enterprise; functional languages; GPGPU; SQL databases; etc. Based in Santiago, Chile; telecommute worldwide. CV; email.

Personal Projects

Choochoo Training Diary

Last 100 entries

Surprise Paradox; [Books] Good Author List; [Computing] Efficient queries with grouping in Postgres; [Computing] Automatic Wake (Linux); [Computing] AWS CDK Aspects in Go; [Bike] Adidas Gravel Shoes; [Computing, Horror] Biological Chips; [Books] Weird Lit Recs; [Covid] Extended SIR Models; [Art] York-based Printmaker; [Physics] Quantum Transitions are not Instantaneous; [Computing] AI and Drum Machines; [Computing] Probabilities, Stopping Times, Martingales; bpftrace Intro Article; [Computing] Starlab Systems - Linux Laptops; [Computing] Extended Berkeley Packet Filter; [Green] Mainspring Linear Generator; Better Approach; Rummikub Solver; Chilean Poetry; Felicitations - Empowerment Grant; [Bike] Fixing Spyre Brakes (That Need Constant Adjustment); [Computing, Music] Raspberry Pi Media (Audio) Streamer; [Computing] Amazing Hack To Embed DSL In Python; [Bike] Ruta Del Condor (El Alfalfal); [Bike] Estimating Power On Climbs; [Computing] Applying Azure B2C Authentication To Function Apps; [Bike] Gearing On The Back Of An Envelope; [Computing] Okular and Postscript in OpenSuse; There's a fix!; [Computing] Fail2Ban on OpenSuse Leap 15.3 (NFTables); [Cycling, Computing] Power Calculation and Brakes; [Hardware, Computing] Amazing Pockit Computer; Bullying; How I Am - 3 Years Post Accident, 8+ Years With MS; [USA Politics] In America's Uncivil War Republicans Are The Aggressors; [Programming] Selenium and Python; Better Walking Data; [Bike] How Fast Before Walking More Efficient Than Cycling?; [COVID] Coronavirus And Cycling; [Programming] Docker on OpenSuse; Cadence v Speed; [Bike] Gearing For Real Cyclists; [Programming] React plotting - visx; [Programming] React Leaflet; AliExpress Independent Sellers; Applebaum - Twilight of Democracy; [Politics] Back + US Elections; [Programming,Exercise] Simple Timer Script; [News] 2019: The year revolt went global; [Politics] The world's most-surveilled cities; [Bike] Hope Freehub; [Restaurant] Mama Chau's (Chinese, Providencia); [Politics] Brexit Podcast; [Diary] Pneumonia; [Politics] Britain's Reichstag Fire moment; install cairo; [Programming] GCC Sanitizer Flags; [GPU, Programming] Per-Thread Program Counters; My Bike Accident - Looking Back One Year; [Python] Geographic heights are incredibly easy!; [Cooking] Cookie Recipe; Efficient, Simple, Directed Maximisation of Noisy Function; And for argparse; Bash Completion in Python; [Computing] Configuring Github Jekyll Locally; [Maths, Link] The Napkin Project; You can Masquerade in Firewalld; [Bike] Servicing Budget (Spring) Forks; [Crypto] CIA Internet Comms Failure; [Python] Cute Rate Limiting API; [Causality] Judea Pearl Lecture; [Security, Computing] Chinese Hardware Hack Of Supermicro Boards; SQLAlchemy Joined Table Inheritance and Delete Cascade; [Translation] The Club; [Computing] Super Potato Bruh; [Computing] Extending Jupyter; Further HRM Details; [Computing, Bike] Activities in ch2; [Books, Link] Modern Japanese Lit; What ended up there; [Link, Book] Logic Book; Update - Garmin Express / Connect; Garmin Forerunner 35 v 230; [Link, Politics, Internet] Government Trolls; [Link, Politics] Why identity politics benefits the right more than the left; SSH Forwarding; A Specification For Repeating Events; A Fight for the Soul of Science; [Science, Book, Link] Lost In Math; OpenSuse Leap 15 Network Fixes; Update; [Book] Galileo's Middle Finger; [Bike] Chinese Carbon Rims; [Bike] Servicing Shimano XT Front Hub HB-M8010; [Bike] Aliexpress Cycling Tops; [Computing] Change to ssh handling of multiple identities?; [Bike] Endura Hummvee Lite II; [Computing] Marble Based Logic; [Link, Politics] Sanity Check For Nuclear Launch; [Link, Science] Entropy and Life

© 2006-2017 Andrew Cooke (site) / post authors (content).

Fixing Java Profiling in Eclipse (TPTP) on Linux (opensuse)

From: "andrew cooke" <andrew@...>

Date: Sat, 11 Oct 2008 17:39:14 -0400 (CLT)

Basically, see
http://www.woggie.net/2007/12/14/tptp-agent-controller-on-arch-linux/

Alternate details:

- When starting profiling, in the Properties dialog, you can select "Java
Profiling - JRE 1.5 or newer..." and then click the "Test Availability"
button.

- Assuming that fails, look at you log, which is in the .metadata folder
of your project.  Do "tail -f .metadata/.log" and you'll see error
messages like:

!ENTRY org.eclipse.tptp.platform.iac.administrator 4 0 2008-10-11
17:21:17.031
!MESSAGE [startIAC: Error Stream] RAServer generated the following output:
/home/andrew/pkg/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v200804021410/agent_controller/bin/ACStart.sh:
line 58: ../bin/ACServer: Permission denied

- To fix the system you have to get that running.  There are at least two
problems:

1 - You need to do chmod +x on the bin and lib directories (that fixes
"Permission denied" errors)
2 - You need to fix the soft links in the lib directory (if you do a ls-l
you'll see that a bunch of files that should be soft links are not) (that
fixes the "file too short" problem).

- You may also need to swicth to JDK 5 from JDK 6 (I read that somewhere
and am currently using JDK 5 - wil switch back later and report).

- You may also need to start the server manually.  This is done by:
export
TPTP_AC_HOME=/home/andrew/pkg/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_em64t_4.4.1.v200804021410/agent_controller
(or wherever your error message points to)
and then running the ACStart.sh script.

Finally, here's what I used to fix the directories (thanks to emacs
autolearn!):

ln -s libnamedPipeTL.so.4.4.0 libnamedPipeTL.so.4
rm libprocessControlUtil.so
ln -s libprocessControlUtil.so.4.4.0 libprocessControlUtil.so
rm libprocessControlUtil.so.4
ln -s libprocessControlUtil.so.4.4.0 libprocessControlUtil.so.4
rm libsharedMemTL.so
ln -s libsharedMemTL.so.4.4.0 libsharedMemTL.so
rm libsharedMemTL.so.4
ln -s libsharedMemTL.so.4.4.0 libsharedMemTL.so.4
rm libsocketTL.so
ln -s libsocketTL.so.4.4.0 libsocketTL.so
rm libsocketTL.so.4
ln -s libsocketTL.so.4.4.0 libsocketTL.so.4
rm libtptpACTL.so
ln -s libtptpACTL.so.4.4.0 libtptpACTL.so
rm libtptpACTL.so.4
ln -s libtptpACTL.so.4.4.0 libtptpACTL.so.4
rm libtptpAgentBase.so
ln -s libtptpAgentBase.so.4.4.0 libtptpAgentBase.so
rm libtptpAgentBase.so.4
ln -s libtptpAgentBase.so.4.4.0 libtptpAgentBase.so.4
rm libtptpCCTL.so
ln -s libtptpCCTL.so.4.4.0 libtptpCCTL.so
rm libtptpCCTL.so.4
ln -s libtptpCCTL.so.4.4.0 libtptpCCTL.so.4
rm libtptpClient.so
ln -s libtptpClient.so.4.4.0 libtptpClient.so
rm libtptpClient.so.4
ln -s libtptpClient.so.4.4.0 libtptpClient.so.4
rm libtptpCmdExtr.so
ln -s libtptpCmdExtr.so.4.4.0 libtptpCmdExtr.so
rm libtptpCmdExtr.so.4
ln -s libtptpCmdExtr.so.4.4.0 libtptpCmdExtr.so.4
rm libtptpConfig.so
ln -s libtptpConfig.so.4.4.0 libtptpConfig.so
rm libtptpConfig.so.4
ln -s libtptpConfig.so.4.4.0 libtptpConfig.so.4
rm libtptpJava.so
ln -s libtptpJava.so.4.4.0 libtptpJava.so
rm libtptpJava.so.4
ln -s libtptpJava.so.4.4.0 libtptpJava.so.4
rm libTptpJSSE.so
ln -s libTptpJSSE.so.4.4.0 libTptpJSSE.so
rm libTptpJSSE.so.4
ln -s libTptpJSSE.so.4.4.0 libTptpJSSE.so.4
rm libtptpLogUtils.so
ln -s libtptpLogUtils.so.4.4.0 libtptpLogUtils.so
rm libtptpLogUtils.so.4
ln -s libtptpLogUtils.so.4.4.0 libtptpLogUtils.so.4
rm libtptpUtils.so
ln -s libtptpUtils.so.4.4.0 libtptpUtils.so
rm libtptpUtils.so.4
ln -s libtptpUtils.so.4.4.0 libtptpUtils.so.4
rm libtransportSupport.so
ln -s libtransportSupport.so.4.4.0 libtransportSupport.so
rm libtransportSupport.so.4
ln -s libtransportSupport.so.4.4.0 libtransportSupport.so.4

Nope

From: "andrew cooke" <andrew@...>

Date: Sat, 11 Oct 2008 18:24:46 -0400 (CLT)

Even with that I am unable to get things working.  I can test the
connection OK, but the process itself is unable to connect to port 10006
(although a telnet to that port indicates that ACServer is listening
there).

Seems like TPTP is not that great.

Andrew

Not Even with Latest Version

From: "andrew cooke" <andrew@...>

Date: Sat, 11 Oct 2008 22:14:27 -0400 (CLT)

This is blowing chunks.

I've installed a completely new Eclipse (3.4.1), updated it via the online
updater, and installed TPTP (4.5-4.5 depending on exact component, all via
online updater).

The install looks OK (previous errors with file flags fixed), but I get
the following when trying to profile:

Error occurred during initialization of VM
Could not find agent library on the library path or in the local
directory: JPIBootLoader

This is opensuse 11 (Linux) 64bit with JDK 1.5.0_16.

Andrew

It Works!

From: "andrew cooke" <andrew@...>

Date: Sat, 11 Oct 2008 22:19:45 -0400 (CLT)

I had an ACServer process running from previous attempts.  Killing that,
starting everything again, and it started.

So, a completely new, clean install with JDK5 and 3.4.1 does appear to work.

Andrew

Updated instructions

From: Erem Boto <ehboto@...>

Date: Fri, 4 Dec 2009 02:16:46 -0800

I just dealt with the hell of getting TPTP working from OpenSuSE 11.1 x86_64
on Galileo 3.5.1, openjdk 1.6.0_0

This is what I finally did to get it working:
1. Install the latest TPTP (mine was 4.6.1) from the default Galileo update
source.
2. Install libstdc++33 using YaST. This contains libstc++.so.5, which is
needed by the app according to errors thrown in
YourEclipseWorkspace/.metadata/.log

At this point you will be convinced that TPTP should be working, and you'll
notice that ACServer loads up automatically. Eclipse even sometimes tells
you that everything's ok.
Except that it's not ok, since the profiler won't run.

Now you'll spend hours tracking down the answer until you come across this
post and read andrew's advice. Particularly

2. download the stand-alone agent as Andrew suggested and manually execute
it. (the part where he talks about TPTP_AC_HOME)

This was enough to at least get SOME profiling done =o

Updated instructions

From: andrew cooke <andrew@...>

Date: Thu, 28 Jan 2010 00:49:57 -0300

[Thanks for the update; sorry for the delay in approving this]

Date: Fri, 4 Dec 2009 02:16:46 -0800
From: Erem Boto <ehboto@...>

I just dealt with the hell of getting TPTP working from OpenSuSE 11.1 x86_64
on Galileo 3.5.1, openjdk 1.6.0_0

This is what I finally did to get it working:
1. Install the latest TPTP (mine was 4.6.1) from the default Galileo update
source.
2. Install libstdc++33 using YaST. This contains libstc++.so.5, which is
needed by the app according to errors thrown in
YourEclipseWorkspace/.metadata/.log

At this point you will be convinced that TPTP should be working, and you'll
notice that ACServer loads up automatically. Eclipse even sometimes tells
you that everything's ok.
Except that it's not ok, since the profiler won't run.

Now you'll spend hours tracking down the answer until you come across this
post and read andrew's advice. Particularly

2. download the stand-alone agent as Andrew suggested and manually execute
it. (the part where he talks about TPTP_AC_HOME)

This was enough to at least get SOME profiling done =o

OProfile - An Alternative for Profiling Java (and C)

From: andrew cooke <andrew@...>

Date: Thu, 4 Mar 2010 14:26:55 -0300

I just noticed that this thread is still getting hits.

I haven't profiled any Java recently, but I have used oprofile to
profile C code.  And it rocks.  AND it supports Java profiling.

So if this is still giving people problems (and even if not) I would
suggest looking at oprofile - it lives in the Kernel, profiles
*everything* (subprocesses, kernel, etc), has minimal overhead, and
the best thing since sliced bread (I thought I had already posted
about it here, but can only find an email mentioning it that I sent to
my co-workers suggesting they try it too)

http://oprofile.sourceforge.net/news/

It's available in a package for OpenSuse (via Yast).  It's a Linux
tool, but something called "Shark" is similar for Macs, I believe.

Andrew

Comment on this post