-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yar协议通过http调用,demo中的motan2使用后提示超出允许内存 #1
Comments
请描述下你是如何使用的?比如是 PHP Client 调用 Motan2 的服务吗?还是 调用 Yar 协议的服务? |
调用的是yar协议的服务 motan2协议应该是php作为客户端调用了motan协议的端口,这块应该是我弄错了,接口那边没有暴露motan协议。 |
这个组件只可以调用 Motan2 协议的服务,另外你说的 http 协议的 yarclient 成功的那是 Yar 的服务端吧?是 Motan-Yar 导出的服务吗? unpack error 是调用 Motan-Yar Server 报的错?还是 PHP-Yar Server ? |
php的yarclient 调用 Motan-Yar Server. 没有中文的情况下是可以正常通信的 |
$client = new Yar_Client("http://localhost:8003/api/merchant"); @yar(“api/merchant”) 暴露 demoYar:8003 class Merchant { |
暴露为motan接口后提示异常:
|
目前php版本只能使用motan2协议与其他语言版本通信,java端必须也使用motan2协议 |
motan2协议下出现以下异常:
|
@JerryChaox Motan2 协议使用简单序列化来打包请求和响应,目前简单序列化只支持 3 种简单数据类型,请确认你上面 |
Allowed memory size of 134217728 bytes exhausted (tried to allocate 1113678912 bytes)
The text was updated successfully, but these errors were encountered: