commandine standalone using 100% of core on doing what?

Richard Gaskin ambassador at
Thu Apr 5 13:27:55 EDT 2018

Tom Glod wrote:

 > hi richard... the standalone opens fine when i don't use the -UI
 > parameter..... it opens up the blank stack and does its
 > supposed to since there is no code anywhere doing anything. no library
 > was modified...or even used.

If you're not using any libraries how is the httpd invoked?

 > its a blank stack.
 > the -ui flag puts it into the loop.  I guess I don't have to use it.

Depends what you're doing. If this will be a server it can be helpful to 
save CPU and RAM by not loading UI stuff that'll never be used.

Well crafted server OSes don't even have a GUI at all, so on those not 
running a standalone without -ui will likely trigger an error as it 
looks for graphics libs not present.

 > but still wondering what its doing.

I just build a standalone here in v9 under Ubuntu 14.04 and ran with 
-ui; not even enough CPU consumption to show up in top.

strace showed the usual things (more than half of it loading fonts that 
are almost never used in faceless apps and CGIs), but there was one 
oddity I don't recall seeing before, toward the very end:

{st_mode=S_IFREG|0755, st_size=38604, ...}) = 0
{st_mode=S_IFREG|0755, st_size=38604, ...}) = 0
lstat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
stat64("/usr/lib/jvm/java-6-openjdk-i386", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
gettimeofday({1522948176, 179743}, {420, 0}) = 0

Why would a standalone bother trying to stat JVM?

I don't think that's related to your CPU issue, but odd just the same.

  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  Ambassador at      

More information about the use-livecode mailing list