Skip to content

Instantly share code, notes, and snippets.

View ndzj081221130's full-sized avatar

zhangjieinnjucs ndzj081221130

View GitHub Profile
@ndzj081221130
ndzj081221130 / 14_2_12_tuscany
Created February 12, 2014 04:23
现在的问题
试图在CF上运行tuscany应用
但自定义的tuscany-buildpack,无法成功启动tuscany应用
java进程在启动后,会被kill,无论是调内存参数,还是别的,都无法解决这个问题
java-console是可以部署的,虽然没有绑定url、
@ndzj081221130
ndzj081221130 / tuscany_problem
Created February 12, 2014 02:12
现在的问题
试图在CF上运行tuscany应用
但自定义的tuscany-buildpack,无法成功启动tuscany应用
java进程在启动后,会被kill,无论是调内存参数,还是别的,都无法解决这个问题
java-console是可以部署的,虽然没有绑定url、
@ndzj081221130
ndzj081221130 / vagrant_test
Created February 12, 2014 02:12
cf-vagrant-test
> 在test/cf-vagrant-installer中执行
> vagrant destroy,删除虚拟机重新vagrant up
> health manager启动失败
> 部署nodejs时,150001: The app package is invalid: failed repacking application
@ndzj081221130
ndzj081221130 / node_js
Created February 12, 2014 02:11
nodejs
nodejs也npm错误,compile中设置 registry ? 有时也不行
还是nodejs对我好啊。。。虽然会挂,但偶尔也会正常运行。。。
test-log是用python写了一个服务器而已。。。
下面呢?
关于组件的varz
@ndzj081221130
ndzj081221130 / warden
Created February 12, 2014 02:11
warden memory
google group中有人提到,给应用分配的内存会用于多个用途,包括:
The memory used by the warden container
The memory used to map kernel extensions and system libraries (such as libc) into the process
The memory used for the jvm executables, jvm working heap, jit space, compressed references and so on.
The memory used for classes (application server and application), thread stacks, direct io buffers, and so on.
The memory used by the java application heap
java default buildpack中,将java_opts中的Xmx和Xms都赋值为用户设置的Memory_Limit
如果Xmx=Xms,那么避免堆动态扩展。
@ndzj081221130
ndzj081221130 / health
Created February 12, 2014 02:09
health
如果将url的health check取消
会因为link()将app改为Crashed?
1 droplet.warden.link.completed
2 droplet.instance.uptime
@ndzj081221130
ndzj081221130 / link_err
Created December 14, 2013 07:56
ruby_link_error
@ndzj081221130
ndzj081221130 / oom
Created December 14, 2013 07:46
oom?
将health_manager.yml中的cc_partition : ng 改为 default,也没用?
确实没有用,改回去。
先使用dea去stage droplet
然后使用dea去运行droplet
运行时会检查droplet.healthy,否则会destroy handle?
@ndzj081221130
ndzj081221130 / select
Created December 13, 2013 01:54
select
> Written with [StackEdit](https://stackedit.io/).
> fd_set rfds;
>
> int rv;
>
> FD_ZERO(&rfds);